-
Notifications
You must be signed in to change notification settings - Fork 2
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
importerror since 1.0.0 #24
Comments
6 tasks
Thanks for the feedback.
1) For an immediate fix, can you lock to 0.0.16
2) Let me see if I can reproduce this. Then I can add a fix and add some
future tests to prevent this from happening in the future.
Connor
…On Thu, Nov 16, 2023 at 10:57 AM veenstrajelmer ***@***.***> wrote:
We recently introduced type_enforced in one of our packages where many
others depend on. In the testbanks get importerrors since the release of type_enforced
1.0.0.
C:\Miniconda3\envs\hydromt-delft3dfm\lib\site-packages\meshkernel\meshkernel.py:18: in <module>
import type_enforced
C:\Miniconda3\envs\hydromt-delft3dfm\lib\site-packages\type_enforced\__init__.py:3: in <module>
from .enforcer import Enforcer, FunctionMethodEnforcer
C:\Miniconda3\envs\hydromt-delft3dfm\lib\site-packages\type_enforced\enforcer.py:1: in <module>
from types import FunctionType, MethodType, GenericAlias, UnionType
E ImportError: cannot import name 'UnionType' from 'types' (C:\Miniconda3\envs\hydromt-delft3dfm\lib\types.py)
This happens in several python versions, but at least py 3.9
—
Reply to this email directly, view it on GitHub
<#24>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3ICWZVVGOB7DRKQN2PL53YEXPRRAVCNFSM6AAAAAA7N3V2PSVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TMNBYGUZTKMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for reporting this. This should be fixed in See: b58d79f |
Can you confirm that this is resolved for you? Feel free to close the issue if it is. |
It seems to be resolved indeed, the imports work again. Thanks for the quick action. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We recently introduced
type_enforced
in one of our packages where many others depend on. In the testbanks get importerrors since the release oftype_enforced 1.0.0
.This happens in several python versions, but at least py 3.9
Would it be possible to fix this, and include online testing on github?
The text was updated successfully, but these errors were encountered: