Skip to content

Commit 853ba1d

Browse files
chore(deps): update dependency mypy to v1.19.0 (#1369)
Signed-off-by: JP-Ellis <josh@jpellis.me> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JP-Ellis <josh@jpellis.me>
1 parent 1b76a9d commit 853ba1d

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

pact-python-cli/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ requires-python = ">=3.10"
5353
# developper consistency. All other dependencies are as above.
5454
dev = ["ruff==0.14.7", { include-group = "test" }, { include-group = "types" }]
5555
test = ["pytest-cov~=7.0", "pytest~=9.0"]
56-
types = ["mypy==1.18.2"]
56+
types = ["mypy==1.19.0"]
5757

5858
################################################################################
5959
## Build System

pact-python-ffi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = ["cffi~=2.0"]
4343
[dependency-groups]
4444
dev = ["ruff==0.14.7", { include-group = "test" }, { include-group = "types" }]
4545
test = ["pytest-cov~=7.0", "pytest~=9.0"]
46-
types = ["mypy==1.18.2", "typing-extensions~=4.0"]
46+
types = ["mypy==1.19.0", "typing-extensions~=4.0"]
4747

4848
################################################################################
4949
## Build System

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test = [
121121
"testcontainers~=4.0",
122122
]
123123
types = [
124-
"mypy==1.18.2",
124+
"mypy==1.19.0",
125125
"types-grpcio~=1.0",
126126
"types-protobuf~=6.0",
127127
"types-requests~=2.0",

src/pact/generate/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __import__( # noqa: N807
146146
name: builtins.str,
147147
globals: Mapping[builtins.str, object] | None = None,
148148
locals: Mapping[builtins.str, object] | None = None,
149-
fromlist: Sequence[builtins.str] = (),
149+
fromlist: Sequence[builtins.str] | None = None,
150150
level: builtins.int = 0,
151151
) -> ModuleType:
152152
"""
@@ -157,6 +157,7 @@ def __import__( # noqa: N807
157157
done to avoid shadowing built-in types and functions.
158158
"""
159159
__tracebackhide__ = True
160+
fromlist = fromlist or ()
160161
if name == "pact.generate" and len(set(fromlist) - {"AbstractGenerator"}) > 0:
161162
warnings.warn(
162163
"Avoid `from pact.generate import <func>`. "

src/pact/match/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def __import__( # noqa: N807
317317
name: builtins.str,
318318
globals: Mapping[builtins.str, object] | None = None,
319319
locals: Mapping[builtins.str, object] | None = None,
320-
fromlist: Sequence[builtins.str] = (),
320+
fromlist: Sequence[builtins.str] | None = None,
321321
level: builtins.int = 0,
322322
) -> ModuleType:
323323
"""
@@ -328,6 +328,7 @@ def __import__( # noqa: N807
328328
avoid shadowing built-in types and functions.
329329
"""
330330
__tracebackhide__ = True
331+
fromlist = fromlist or ()
331332
if name == "pact.match" and len(set(fromlist) - {"AbstractMatcher"}) > 0:
332333
warnings.warn(
333334
"Avoid `from pact.match import <func>`. "

0 commit comments

Comments
 (0)