@@ -3184,7 +3184,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
3184
3184
3185
3185
class CConverterAutoRegister (type ):
3186
3186
def __init__ (
3187
- cls , name : str , bases : tuple [type , ...], classdict : dict [str , Any ]
3187
+ cls , name : str , bases : tuple [type [ object ] , ...], classdict : dict [str , Any ]
3188
3188
) -> None :
3189
3189
converter_cls = cast (type ["CConverter" ], cls )
3190
3190
add_c_converter (converter_cls )
@@ -3217,7 +3217,7 @@ class CConverter(metaclass=CConverterAutoRegister):
3217
3217
3218
3218
# If not None, default must be isinstance() of this type.
3219
3219
# (You can also specify a tuple of types.)
3220
- default_type : bltns .type [Any ] | tuple [bltns .type [Any ], ...] | None = None
3220
+ default_type : bltns .type [object ] | tuple [bltns .type [object ], ...] | None = None
3221
3221
3222
3222
# "default" converted into a C value, as a string.
3223
3223
# Or None if there is no default.
@@ -3683,7 +3683,7 @@ def add_include(self, name: str, reason: str,
3683
3683
ReturnConverterDict = dict [str , ReturnConverterType ]
3684
3684
return_converters : ReturnConverterDict = {}
3685
3685
3686
- TypeSet = set [bltns .type [Any ]]
3686
+ TypeSet = set [bltns .type [object ]]
3687
3687
3688
3688
3689
3689
class bool_converter (CConverter ):
@@ -4347,7 +4347,7 @@ class buffer: pass
4347
4347
class rwbuffer : pass
4348
4348
class robuffer : pass
4349
4349
4350
- StrConverterKeyType = tuple [frozenset [type ], bool , bool ]
4350
+ StrConverterKeyType = tuple [frozenset [type [ object ] ], bool , bool ]
4351
4351
4352
4352
def str_converter_key (
4353
4353
types : TypeSet , encoding : bool | str | None , zeroes : bool
@@ -4846,7 +4846,7 @@ class CReturnConverterAutoRegister(type):
4846
4846
def __init__ (
4847
4847
cls : ReturnConverterType ,
4848
4848
name : str ,
4849
- bases : tuple [type , ...],
4849
+ bases : tuple [type [ object ] , ...],
4850
4850
classdict : dict [str , Any ]
4851
4851
) -> None :
4852
4852
add_c_return_converter (cls )
0 commit comments