Skip to content

Commit

Permalink
manually CP python#9130 from typeshed into mypy for point release
Browse files Browse the repository at this point in the history
Manually applied python/typeshed#9130
  • Loading branch information
svalentin committed Nov 14, 2022
1 parent dd0503e commit 064442a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mypy/typeshed/stdlib/_ast.pyi
Expand Up @@ -329,7 +329,7 @@ class JoinedStr(expr):

if sys.version_info < (3, 8):
class Num(expr): # Deprecated in 3.8; use Constant
n: complex
n: int | float | complex:

class Str(expr): # Deprecated in 3.8; use Constant
s: str
Expand All @@ -349,7 +349,7 @@ class Constant(expr):
kind: str | None
# Aliases for value, for backwards compatibility
s: Any
n: complex
n: int | float | complex

if sys.version_info >= (3, 8):
class NamedExpr(expr):
Expand Down
2 changes: 1 addition & 1 deletion mypy/typeshed/stdlib/ast.pyi
Expand Up @@ -10,7 +10,7 @@ if sys.version_info >= (3, 8):
def __init__(cls, *args: object) -> None: ...

class Num(Constant, metaclass=_ABC):
value: complex
value: int | float | complex

class Str(Constant, metaclass=_ABC):
value: str
Expand Down

0 comments on commit 064442a

Please sign in to comment.