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

TypeError: dataclass() got an unexpected keyword argument 'slots' #110

Closed
matthuisman opened this issue Jan 9, 2024 · 5 comments
Closed

Comments

@matthuisman
Copy link

matthuisman commented Jan 9, 2024

Python 3.7 erroring with the below message

    import isotp
.envs\py37\venv\lib\site-packages\isotp\__init__.py:6: in <module>
    from isotp.protocol import TransportLayerLogic, TransportLayer, CanStack, NotifierBasedCanStack
.envs\py37\venv\lib\site-packages\isotp\protocol.py:300: in <module>
    class TransportLayerLogic:
.envs\py37\venv\lib\site-packages\isotp\protocol.py:303: in TransportLayerLogic
    @dataclass(slots=True, init=False)
E   TypeError: dataclass() got an unexpected keyword argument 'slots'

Looks like slots was only added in 3.10
https://docs.python.org/3/library/dataclasses.html

@pylessard
Copy link
Owner

You didn't loose time here to report :)
Will fix right away

@matthuisman
Copy link
Author

yeh, it broke a lot of my works CI :) so we caught it quick
Thanks

@pylessard
Copy link
Owner

Last release is a major version number change. I broke many interface

@pylessard pylessard reopened this Jan 9, 2024
@pylessard
Copy link
Owner

pylessard commented Jan 9, 2024

v2.0.1 is release and published. Should work.

@matthuisman
Copy link
Author

thank you for the fast turn around. much appreciated

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