Skip to content

Commit acfdebf

Browse files
authored
fix xxlimited inheritance (#11119)
related to #3968 Co-authored-by: Stephen Morton <[email protected]>
1 parent e76e681 commit acfdebf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/xxlimited.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import sys
22
from typing import Any
33
from typing_extensions import final
44

5-
class Str: ...
5+
class Str(str): ...
66

77
@final
88
class Xxo:
@@ -14,10 +14,10 @@ def foo(__i: int, __j: int) -> Any: ...
1414
def new() -> Xxo: ...
1515

1616
if sys.version_info >= (3, 10):
17-
class Error: ...
17+
class Error(Exception): ...
1818

1919
else:
20-
class error: ...
20+
class error(Exception): ...
2121
class Null: ...
2222

2323
def roj(__b: Any) -> None: ...

0 commit comments

Comments
 (0)