Skip to content

Commit 371d30b

Browse files
committed
PEP 544: Rename confusing identifiers in example
1 parent e0511b8 commit 371d30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep-0544.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,11 +1232,11 @@ Another potentially problematic case is assignment of attributes
12321232
*after* instantiation::
12331233

12341234
class P(Protocol):
1235-
x: int
1235+
y: int
12361236

12371237
class C:
12381238
def initialize(self) -> None:
1239-
self.x = 0
1239+
self.y = 0
12401240

12411241
c = C()
12421242
isinstance(c, P) # False

0 commit comments

Comments
 (0)