mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fix return annotations of several methods that return self at runtime (#7070)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import Self
|
||||
from typing import Any
|
||||
|
||||
MAXGROUPS: int
|
||||
@@ -15,7 +16,7 @@ class error(Exception):
|
||||
|
||||
class _NamedIntConstant(int):
|
||||
name: Any
|
||||
def __new__(cls, value: int, name: str) -> _NamedIntConstant: ...
|
||||
def __new__(cls: type[Self], value: int, name: str) -> Self: ...
|
||||
|
||||
MAXREPEAT: _NamedIntConstant
|
||||
OPCODES: list[_NamedIntConstant]
|
||||
|
||||
Reference in New Issue
Block a user