Skip to content

Conversation

@jakubpernis
Copy link
Contributor

This is one of the ways to solve #23. Don't know whether immutability is of importance here but just to be safe I used frozen=True. I had to tweak the tests a bit but accessing attributes directly rather than by subscribing seems better to me.

@jakubpernis
Copy link
Contributor Author

Hi btw 😉

@vojtechtuma-imi
Copy link
Contributor

hi :) I'll look at this tomorrow, I just wonder why did I not use the dataclass in the first place... (ie, why did I chose NamedTuple, which aint my fav thing...)

@tmi tmi merged commit e165592 into AmpX-AI:main Sep 24, 2022
@tmi
Copy link
Collaborator

tmi commented Sep 24, 2022

nothing seems broken so I guess all is well. I still fear that there is something lurking around the generics, it just got hidden by some of the other type: ignore that were already present. The fix of the test is definitely worth it even if we would have to revert back to NamedTuple

I will proceed with adding py3.9 to the regular test suite

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.

3 participants