Skip to content
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

Add typing to validate_types decorator #9

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

johnpaulett
Copy link
Contributor

For users of ULID.from_*, pylance indicates "partially unknown", e.g.:
pylance

This PR tweaks validate_types to avoid that error.

Also fixes typing warning for __lt__ and __eq__.

@johnpaulett
Copy link
Contributor Author

@mdomke, it looks like you fixed the Action failures in #10. I can rebase this PR on main once that other PR is merged, if good with you.

@mdomke
Copy link
Owner

mdomke commented Sep 21, 2023

That sounds about right! The branch is merged now.

ulid/__init__.py Outdated Show resolved Hide resolved
ulid/__init__.py Outdated Show resolved Hide resolved
ulid/__init__.py Show resolved Hide resolved
ulid/__init__.py Outdated Show resolved Hide resolved
ulid/__init__.py Outdated Show resolved Hide resolved
ulid/__init__.py Show resolved Hide resolved
For users of `ULID.from_*`, pylance indicates "partially unknown".
@mdomke mdomke merged commit ee313ce into mdomke:main Sep 21, 2023
5 checks passed
@johnpaulett
Copy link
Contributor Author

@mdomke no rush, but would it be possible to cut a 2.3.0 release to include this and the other recent PRs?

@mdomke
Copy link
Owner

mdomke commented Mar 21, 2024

Version 2.3.0 has been released 🎉 including this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants