Replies: 1 comment 2 replies
-
Mypy is accurately telling you that the datetime constructor has an argument ( I would say it feels slightly arbitrary what the type checker chooses to complain about here, in the sense that this code is much more broadly type-unsafe than that: any invalid keyword name provided to this wrapper, or too many positional arguments, will also result in a This might be a good use case for |
Beta Was this translation helpful? Give feedback.
-
Hi All,
Is this a bug in mypy? As best I (and a bunch of unit tests!) can tell, this code is good:
...but mypy (1.15.0 runnong on Python 3.12.1) complains with:
Beta Was this translation helpful? Give feedback.
All reactions