Skip to content

Commit 3ff8f89

Browse files
Jdwashin9Jdwashin9
authored andcommitted
removing conflict with types.py
1 parent b61c9ba commit 3ff8f89

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+52
-50
lines changed

docs/source/getting_started.rst

Lines changed: 1 addition & 1 deletion

mypy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mypy]
2+
check_untyped_defs = true

mypy/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import stat
2525
import sys
2626
import time
27-
import types
27+
import types as std_types
2828
from collections.abc import Iterator, Mapping, Sequence, Set as AbstractSet
2929
from typing import (
3030
TYPE_CHECKING,

mypy/pyinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if sys.version_info < (3, 11):
1717
old_sys_path = sys.path
1818
sys.path = sys.path[1:]
19-
import types # noqa: F401
19+
import types as std_types # noqa: F401
2020

2121
sys.path = old_sys_path
2222

mypy/server/objgraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
import types
5+
import types as std_types
66
import weakref
77
from collections.abc import Iterable, Iterator, Mapping
88
from typing import Final

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import symtable
2121
import sys
2222
import traceback
23-
import types
23+
import types as std_types
2424
import typing
2525
import typing_extensions
2626
import warnings

mypy/test/teststubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ def test_missing_no_runtime_all_terrible(self) -> Iterator[Case]:
15451545
stub="",
15461546
runtime="""
15471547
import sys
1548-
import types
1548+
import types as std_types
15491549
import __future__
15501550
_m = types.SimpleNamespace()
15511551
_m.annotations = __future__.annotations

mypy/typeshed/stdlib/_frozen_importlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import importlib.abc
22
import importlib.machinery
33
import sys
4-
import types
4+
import types as std_types
55
from _typeshed.importlib import LoaderProtocol
66
from collections.abc import Mapping, Sequence
77
from types import ModuleType

mypy/typeshed/stdlib/_frozen_importlib_external.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import _io
33
import importlib.abc
44
import importlib.machinery
55
import sys
6-
import types
6+
import types as std_types
77
from _typeshed import ReadableBuffer, StrOrBytesPath, StrPath
88
from _typeshed.importlib import LoaderProtocol
99
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableSequence, Sequence

mypy/typeshed/stdlib/_imp.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
import types
2+
import types as std_types
33
from _typeshed import ReadableBuffer
44
from importlib.machinery import ModuleSpec
55
from typing import Any

0 commit comments

Comments
 (0)