Update pyright (#6840)

This commit is contained in:
Sebastian Rittau
2022-01-07 17:58:15 +01:00
committed by GitHub
parent da78d7cbc3
commit e77a66aced
21 changed files with 37 additions and 31 deletions

View File

@@ -6,7 +6,6 @@ _T = TypeVar("_T")
@final
class Pattern(Generic[AnyStr]):
pattern: AnyStr
flags: int
groups: int

View File

@@ -149,6 +149,6 @@ def cache_all(value: None) -> bool: ...
def escape(pattern: AnyStr, special_only: bool = ..., literal_spaces: bool = ...) -> AnyStr: ...
def template(pattern: AnyStr | _regex.Pattern[AnyStr], flags: int = ...) -> _regex.Pattern[AnyStr]: ...
Pattern = _regex.Pattern
Match = _regex.Match
Pattern = _regex.Pattern[AnyStr]
Match = _regex.Match[AnyStr]
Regex = compile