-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
TypeError: Exception does not take keyword arguments #2344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is just a bad annotation. BaseException doesn't take kwargs in any Python version I tried (2.7, 3.5, 3.6). |
euresti
added a commit
to euresti/typeshed
that referenced
this issue
Jul 27, 2018
JelleZijlstra
pushed a commit
that referenced
this issue
Jul 27, 2018
yedpodtrzitko
pushed a commit
to yedpodtrzitko/typeshed
that referenced
this issue
Jan 23, 2019
Open
timon
added a commit
to timon/xled
that referenced
this issue
Jan 5, 2020
To quote [Jelle Zijlstra](python/typeshed#2344 (comment)), > BaseException doesn't take kwargs in any Python version I tried (2.7, 3.5, 3.6).
timon
added a commit
to timon/xled
that referenced
this issue
Jan 14, 2020
To quote [Jelle Zijlstra](python/typeshed#2344 (comment)), > BaseException doesn't take kwargs in any Python version I tried (2.7, 3.5, 3.6).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote some bad code which mypy didn't catch. It boils down to:
Running the above yields:
TypeError: FooError does not take keyword arguments
but mypy doesn't complain. Probably because:I'd just make a change but part of me wonders if this was done on purpose.
The text was updated successfully, but these errors were encountered: