We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb58380 commit 7314ebaCopy full SHA for 7314eba
2 files changed
tests/misc/non_compliant.py
@@ -124,3 +124,11 @@
124
bytearray(4)[0:1] = [1, 2]
125
except NotImplementedError:
126
print('NotImplementedError')
127
+
128
+# can't assign attributes to a function
129
+def f():
130
+ pass
131
+try:
132
+ f.x = 1
133
+except AttributeError:
134
+ print('AttributeError')
tests/misc/non_compliant.py.exp
@@ -19,3 +19,4 @@ NotImplementedError
19
b'\x01\x02'
20
b'\x01\x00'
21
NotImplementedError
22
+AttributeError
0 commit comments