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

The package is not compatible with typing-extensions >=4.6.0 #12

Closed
MarshalX opened this issue Jul 16, 2023 · 2 comments
Closed

The package is not compatible with typing-extensions >=4.6.0 #12

MarshalX opened this issue Jul 16, 2023 · 2 comments

Comments

@MarshalX
Copy link
Contributor

MarshalX commented Jul 16, 2023

traceback:

File "/Users/ilyasiamionau/projects/atproto/atproto/cbor/__init__.py", line 4, in <module>
    import dag_cbor as _dag_cbor
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/dag_cbor/__init__.py", line 9, in <module>
    from .ipld import IPLDKind, IPLDScalarKind, IPLDObjPath
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/dag_cbor/ipld.py", line 30, in <module>
    from multiformats import CID
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/multiformats/__init__.py", line 22, in <module>
    from . import multibase
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/multiformats/multibase/__init__.py", line 22, in <module>
    from bases import (base2, base16, base8, base10, base36, base58btc, base58flickr, base58ripple,
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/bases/__init__.py", line 40, in <module>
    from . import encoding as encoding
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/bases/encoding/__init__.py", line 293, in <module>
    base8 = FixcharBaseEncoding(alphabet.base8, pad_char="=", padding="include")
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/bases/encoding/fixchar.py", line 106, in __init__
    validate(char_nbits, Union[int, Literal["auto"]])
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/typing_validation/validation.py", line 635, in validate
    _validate_union(val, t)
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/typing_validation/validation.py", line 515, in _validate_union
    validate(val, member_t)
  File "/Users/ilyasiamionau/Library/Caches/pypoetry/virtualenvs/atproto-iBRicY1L-py3.8/lib/python3.8/site-packages/typing_validation/validation.py", line 691, in validate
    raise unsupported_type_error
ValueError: Unsupported validation for type typing_extensions.Literal['auto'].

pls dont drop support of typing-extensions < 4.6.0 during fix, thanks

@MarshalX
Copy link
Contributor Author

duplicates of hashberg-io/typing-validation#1

@sg495
Copy link
Contributor

sg495 commented Dec 18, 2023

@MarshalX just an FYI that this issue has been fixed across the whole suite of libraries.

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

No branches or pull requests

2 participants