osmapi

 1__version__ = "6.0.0"
 2
 3from typing import Any
 4
 5from .OsmApi import *  # noqa
 6from .errors import *  # noqa
 7from . import dom  # noqa
 8from . import errors  # noqa
 9from . import http  # noqa
10from . import parser  # noqa
11from . import xmlbuilder  # noqa
12
13
14def __getattr__(name: str) -> Any:
15    """
16    Resolve a deprecated error name to its replacement (see PEP 562).
17
18    Star-imports don't pick up the module-level `__getattr__` of
19    `osmapi.errors`, so the deprecated names are forwarded here to keep
20    `osmapi.UsernamePasswordMissingError` working (with a
21    `DeprecationWarning`) until version 7.0.
22    """
23    if name in errors.DEPRECATED_ERROR_NAMES:
24        return errors.resolve_deprecated_name(name)
25    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")