File: netifaces.pyi

package info (click to toggle)
python-test-tunnel 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 220 kB
  • sloc: python: 742; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: BSD-2-Clause
"""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]]: ...