Skip to content

Commit 59a8383

Browse files
committed
fix: undefined instance attribute
1 parent e49fe2c commit 59a8383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/generics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ the attribute as ``Final``, the class could still be made covariant:
668668
self.content: Final = content
669669
670670
def get_content(self) -> T:
671-
return self._content
671+
return self.content
672672
673673
When using the legacy syntax, mypy assumes that all user-defined generics
674674
are invariant by default. To declare a given generic class as covariant or

0 commit comments

Comments
 (0)