dns.pyi 467 B

12345678910111213141516171819202122232425
  1. from typing import ClassVar, Generic, Optional, TypeVar
  2. class Name:
  3. name: bytes
  4. def __init__(self, name: bytes = b""): ...
  5. SRV: int
  6. class Record_SRV:
  7. priority: int
  8. weight: int
  9. port: int
  10. target: Name
  11. ttl: int
  12. Payload = TypeVar("Payload") # should be bound to IEncodableRecord
  13. class RRHeader(Generic[Payload]):
  14. fmt: ClassVar[str]
  15. name: Name
  16. type: int
  17. cls: int
  18. ttl: int
  19. payload: Optional[Payload]
  20. auth: bool