We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0511b8 commit 371d30bCopy full SHA for 371d30b
1 file changed
pep-0544.txt
@@ -1232,11 +1232,11 @@ Another potentially problematic case is assignment of attributes
1232
*after* instantiation::
1233
1234
class P(Protocol):
1235
- x: int
+ y: int
1236
1237
class C:
1238
def initialize(self) -> None:
1239
- self.x = 0
+ self.y = 0
1240
1241
c = C()
1242
isinstance(c, P) # False
0 commit comments