There was an error while loading. Please reload this page.
List
list
1 parent fe31334 commit de2f375Copy full SHA for de2f375
1 file changed
docs/source/common_issues.rst
@@ -731,7 +731,7 @@ This example demonstrates both safe and unsafe overrides:
731
732
class NarrowerReturn(A):
733
# A more specific return type is fine
734
- def test(self, t: Sequence[int]) -> List[str]: # OK
+ def test(self, t: Sequence[int]) -> list[str]: # OK
735
...
736
737
class GeneralizedReturn(A):
@@ -746,7 +746,7 @@ not necessary:
746
.. code-block:: python
747
748
class NarrowerArgument(A):
749
- def test(self, t: List[int]) -> Sequence[str]: # type: ignore[override]
+ def test(self, t: list[int]) -> Sequence[str]: # type: ignore[override]
750
751
752
.. _unreachable:
0 commit comments