mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
@@ -66,7 +66,9 @@ class _NetlocResultMixinBase(Generic[AnyStr]):
|
||||
class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
|
||||
class _NetlocResultMixinBytes(_NetlocResultMixinBase[bytes], _ResultMixinBytes): ...
|
||||
|
||||
class _DefragResultBase(tuple[Any, ...], Generic[AnyStr]):
|
||||
# Ideally this would be a generic fixed-length tuple,
|
||||
# but mypy doesn't support that yet: https://github.com/python/mypy/issues/685#issuecomment-992014179
|
||||
class _DefragResultBase(tuple[AnyStr, ...], Generic[AnyStr]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__ = ("url", "fragment")
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user