File: abc.pyi

package info (click to toggle)
typeshed 0.0~git20241223.ea91db2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 28,756 kB
  • sloc: python: 7,741; makefile: 20; sh: 18
file content (14 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys

if sys.version_info >= (3, 11):
    # These are all actually defined in this file on 3.11+,
    # and re-exported from importlib.abc,
    # but it's much less code duplication for typeshed if we pretend that they're still defined
    # in importlib.abc on 3.11+, and re-exported from this file
    from importlib.abc import (
        ResourceReader as ResourceReader,
        Traversable as Traversable,
        TraversableResources as TraversableResources,
    )

    __all__ = ["ResourceReader", "Traversable", "TraversableResources"]