File: netifaces.pyi

package info (click to toggle)
microsocks 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 200 kB
  • sloc: ansic: 624; python: 427; sh: 68; makefile: 46
file content (15 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Type stubs for the netifaces library."""

from typing import TypedDict


class AddressRecord(TypedDict):
    """A single address record returned for an interface."""

    addr: str
    netmask: str


def interfaces() -> list[str]: ...

def ifaddresses(iface: str) -> dict[int, list[AddressRecord]]: ...