-
-
Notifications
You must be signed in to change notification settings - Fork 43
fix(typing): put EllipsisType in LengthType union
#116
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
Conversation
|
gentle ping @samuelcolvin :) |
|
@FBruzzesi maybe you could take a look? |
FBruzzesi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucascolley thanks for the ping, that left me with a big smile and some confusion - for context I am not related with this project, just a big fan and user of it
I left a couple of comments, one much more relevant than the other
| if sys.version_info >= (3, 10): | ||
| from types import EllipsisType | ||
| else: | ||
| EllipsisType = Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't try this, but maybe some hack like the following could work as a "backport"
| EllipsisType = Any | |
| from typing import Type | |
| EllipsisType = Type[class(Ellipsis)] |
but also, py3.9 will reach end of life in a month anyway
I figured :) unfortunately the (sole?) maintainer is unresponsive |
Co-authored-by: Francesco Bruzzesi <42817048+FBruzzesi@users.noreply.github.com>
|
No, he's not the only one. I can merge it if you want, but I don't know how releases are handled in this project. |
|
Sounds good @15r10nk, thanks! Maybe you have some other channel of communication with him? |
|
Sorry for the slow reply, I'll look today |
|
no rush for a new release, but one at some point would be fantastic, thanks! For context, we have started using inline-snapshot and dirty-equals in https://github.com/prefix-dev/pixi. Thanks for the tools! |
|
thanks all for your work on this, I'll try to do a release tomorrow. If I forget, please ping me on email or twitter. |
|
Release done. Sorry again for the delay. |
An ellipsis is a valid argument, as shown in the docs: https://dirty-equals.helpmanual.io/latest/types/sequence/?h=isl#dirty_equals.IsList.
closes gh-110