Skip to content

Commit 2a5c49f

Browse files
committed
shiny for mypy
upsert always returns a value, but annotations don't know that
1 parent 5c34fdc commit 2a5c49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ampel/core/AmpelContext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def new_run_id(self) -> int:
153153
{'$inc': {'value': 1}},
154154
new=True, upsert=True
155155
) \
156-
.get('value')
156+
.get('value') # type: ignore[union-attr]
157157

158158

159159
def get_config(self) -> AmpelConfig:

0 commit comments

Comments
 (0)