From 4252184be1db96079ae3447f67aa67c689d249bf Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 13 Nov 2022 16:14:33 -0800 Subject: [PATCH] type stubs: Mark reexports using explicit reexport syntax Otherwise these reexports may not made visible from other modules, depending on the type checker configuration. https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport Signed-off-by: Anders Kaseorg --- py/__init__.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/py/__init__.pyi b/py/__init__.pyi index 96859e31..6e8c3e91 100644 --- a/py/__init__.pyi +++ b/py/__init__.pyi @@ -2,11 +2,11 @@ from typing import Any # py allows to use e.g. py.path.local even without importing py.path. # So import implicitly. -from . import error -from . import iniconfig -from . import path -from . import io -from . import xml +from . import error as error +from . import iniconfig as iniconfig +from . import path as path +from . import io as io +from . import xml as xml __version__: str