Skip to content

Commit ca22545

Browse files
authored
Don't check untyped calls in constants because of immuteabledict (#493)
1 parent b1dc7a0 commit ca22545

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mypi.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ disallow_untyped_defs = True
2121
[mypy-scriptworker.constants]
2222
check_untyped_defs = True
2323
disallow_untyped_defs = True
24+
# untyped_calls because of immutabledict==1.3.0
25+
disallow_untyped_calls = False
2426

2527
[mypy-scriptworker.context]
2628
check_untyped_defs = True

src/scriptworker/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#
3232
# When adding new complex config, make sure all `list`s are `tuple`s, and all
3333
# `dict`s are `immutabledict`s! (This should get caught by config tests.)
34-
DEFAULT_CONFIG = immutabledict(
34+
DEFAULT_CONFIG: immutabledict[str, Any] = immutabledict(
3535
{
3636
"taskcluster_root_url": os.environ.get("TASKCLUSTER_ROOT_URL", "https://firefox-ci-tc.services.mozilla.com/"),
3737
# Worker identification

0 commit comments

Comments
 (0)