BaseException.__init__ accepts **kwargs#1704
Conversation
|
Can you apply the same change in Python 3, and use |
|
certainly! why does Python 3 BaseException need I don't question it, I'd just like to understand. I see it already has |
4bb7cec to
0217ce2
Compare
|
I think they should be |
|
wouldn't that mean in Python 2 that old-style classes were not acceptable args? So it's maybe correct for Python 2 but in Python 3 more of the |
|
|
|
then I am curious what, if anything, would pass a type-check for I appreciate there's a semantic difference but it is pretty subtle, what makes it apply here? |
|
I don't think in this case the difference will directly affect type checker output; it's more about cleanliness, because we try to minimize usage of In some cases it can make a difference though. If you have an API that takes a callback of type Would it be easier to discuss this further in the typing chatroom at https://gitter.im/python/typing? |
This is to fix python/mypy#4183