mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add default value to ast.MatchStar.name (#14298)
This commit is contained in:
+1
-1
@@ -1590,7 +1590,7 @@ if sys.version_info >= (3, 10):
|
||||
class MatchStar(pattern):
|
||||
__match_args__ = ("name",)
|
||||
name: str | None
|
||||
def __init__(self, name: str | None, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
||||
def __init__(self, name: str | None = None, **kwargs: Unpack[_Attributes[int]]) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 14):
|
||||
def __replace__(self, *, name: str | None = ..., **kwargs: Unpack[_Attributes[int]]) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user