Skip to content

Commit

Permalink
ignore mypy 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jul 23, 2024
1 parent ec2d718 commit 98cbfd6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion gapic/templates/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ def showcase_mypy(
"""Perform typecheck analysis on the generated Showcase library."""

# Install pytest and gapic-generator-python
session.install("mypy", "types-pkg-resources", "types-protobuf", "types-requests", "types-dataclasses")
# Ignore release of mypy 1.11.0 which may have a regression
session.install("mypy!=1.11.0", "types-pkg-resources", "types-protobuf", "types-requests", "types-dataclasses")

with showcase_library(session, templates=templates, other_opts=other_opts) as lib:
session.chdir(lib)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/goldens/asset/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/goldens/credentials/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/goldens/eventarc/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/goldens/logging/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/goldens/redis/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def cover(session):
def mypy(session):
"""Run the type checker."""
session.install(
'mypy',
# Ignore release of mypy 1.11.0 which may have a regression
'mypy!=1.11.0',
'types-requests',
'types-protobuf'
)
Expand Down

0 comments on commit 98cbfd6

Please sign in to comment.