Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit b0f00cd

Browse files
committed
update mypy ini template
1 parent 015bee0 commit b0f00cd

8 files changed

Lines changed: 104 additions & 0 deletions

File tree

gapic/templates/mypy.ini.j2

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[mypy]
22
python_version = 3.14
33
namespace_packages = True
4+
5+
# FIX: Prevents failure when dependencies (like google-iam) lack type hints
6+
ignore_missing_imports = True
7+
8+
# FIX: Silences the "note: By default the bodies of untyped functions are not checked"
9+
# This keeps CI logs clean and focused on actual errors.
10+
check_untyped_defs = False
11+
12+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
13+
explicit_package_bases = True
14+
15+
# Performance: reuse results from previous runs to speed up 'nox'
16+
incremental = True

0 commit comments

Comments
 (0)