@@ -596,7 +596,23 @@ def foo(self, a, b):
596
596
597
597
@default
598
598
def probably_broken_method_with_no_args ():
599
- pass # This eex
599
+ # This is a weird thing to do, but it shouldn't cause us to
600
+ # crash because of missing a first parameter.
601
+ pass
602
+
603
+ @default
604
+ @classmethod
605
+ def probably_broken_classmethod_with_no_args ():
606
+ # This is a weird thing to do, but it shouldn't cause us to
607
+ # crash because of missing a first parameter.
608
+ pass
609
+
610
+ @default
611
+ @property
612
+ def probably_broken_property_with_no_args ():
613
+ # This is a weird thing to do, but it shouldn't cause us to
614
+ # crash because of missing a first parameter.
615
+ pass
600
616
601
617
@default
602
618
@staticmethod
@@ -609,6 +625,7 @@ def default_staticmethod():
609
625
def default_method (self , x ):
610
626
foo = self .foo (1 , 2 ) # Should be fine.
611
627
wut = self .not_in_interface (2 , 3 ) # Should cause a warning.
628
+ self .setting_non_interface = 2 # Should cause a warning.
612
629
return foo + wut
613
630
614
631
@default
@@ -635,6 +652,7 @@ def default_classmethod(cls, x):
635
652
636
653
The following attributes may be accessed but are not part of the interface:
637
654
- not_in_interface
655
+ - setting_non_interface
638
656
639
657
Consider changing the implementation of default_method or making these attributes part of HasDefault.""" # noqa
640
658
assert second == expected_second
0 commit comments