Add missing __slots__ to third-party packages (#15454)

This commit is contained in:
Semyon Moroz
2026-02-22 20:08:46 +01:00
committed by GitHub
parent 9a9cc1834d
commit b43fc8f6f3
11 changed files with 54 additions and 2 deletions
+5 -1
View File
@@ -63,11 +63,15 @@ _AcceptLanguageProperty: TypeAlias = AsymmetricPropertyWithDelete[
),
]
class AcceptOffer(NamedTuple):
@type_check_only
class _AcceptOffer(NamedTuple):
type: str
subtype: str
params: tuple[tuple[str, str], ...]
class AcceptOffer(_AcceptOffer):
__slots__ = ()
class Accept:
@classmethod
def parse(cls, value: str) -> Iterator[_ParsedAccept]: ...