Skip to content

Commit bc4473d

Browse files
authored
Fix conflicting imports (#13561)
1 parent 20aef1d commit bc4473d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

stubs/icalendar/icalendar/__init__.pyi

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from . import version as version_mod
12
from .alarms import (
23
Alarms as Alarms,
34
AlarmTime as AlarmTime,
@@ -45,12 +46,6 @@ from .prop import (
4546
vWeekday as vWeekday,
4647
)
4748
from .timezone import use_pytz, use_zoneinfo
48-
from .version import (
49-
__version__ as __version__,
50-
__version_tuple__ as __version_tuple__,
51-
version as version,
52-
version_tuple as version_tuple,
53-
)
5449

5550
__all__ = [
5651
"Calendar",
@@ -102,3 +97,8 @@ __all__ = [
10297
"IncompleteAlarmInformation",
10398
"LocalTimezoneMissing",
10499
]
100+
101+
__version__ = version_mod.__version__
102+
__version_tuple__ = version_mod.__version_tuple__
103+
version = version_mod.version
104+
version_tuple = version_mod.version_tuple

stubs/requests/requests/__init__.pyi

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
1-
from . import packages as packages, utils as utils
2-
from .__version__ import (
3-
__author__ as __author__,
4-
__author_email__ as __author_email__,
5-
__build__ as __build__,
6-
__cake__ as __cake__,
7-
__copyright__ as __copyright__,
8-
__description__ as __description__,
9-
__license__ as __license__,
10-
__title__ as __title__,
11-
__url__ as __url__,
12-
__version__ as __version__,
13-
)
1+
from . import __version__ as version_mod, packages as packages, utils as utils
142
from .api import (
153
delete as delete,
164
get as get,
@@ -37,4 +25,15 @@ from .models import PreparedRequest as PreparedRequest, Request as Request, Resp
3725
from .sessions import Session as Session, session as session
3826
from .status_codes import codes as codes
3927

28+
__author__ = version_mod.__author__
29+
__author_email__ = version_mod.__author_email__
30+
__build__ = version_mod.__build__
31+
__cake__ = version_mod.__cake__
32+
__copyright__ = version_mod.__copyright__
33+
__description__ = version_mod.__description__
34+
__license__ = version_mod.__license__
35+
__title__ = version_mod.__title__
36+
__url__ = version_mod.__url__
37+
__version__ = version_mod.__version__
38+
4039
def check_compatibility(urllib3_version: str, chardet_version: str | None, charset_normalizer_version: str | None) -> None: ...

0 commit comments

Comments
 (0)