Closed ondrejmular closed 4 years ago
hi @ondrejmular - thank you for reporting this issue and I glad you like dacite
:)
That's interesting - I run all tests with Python 3.9.0a6+
a few weeks ago and everything was green, but I've just updated Python 3.9 and OFC it doesn't work right now.
I will take a closer look where is the problem and of course I will update dacite
.
Hello, do you have any estimate when this can be fixed? I need to decide whether I should wait for your fixed version or temporarily use my patch which fixed our use case. Thanks
@ondrejmular my estimation is "-5min" ;)
Please check 1.5.1
version, should be fixed now.
Hey, first of all thank you for a great lib!
In Fedora, all python packages are currently being rebuild and tested with the latest Python 3.9 beta1. And it seems like there have been some changes in internals of
typing
module.After a really quick investigation I found that accessing
__args__
attribute of a type object (e.g.typing.Mapping
, used in tests) raises anAttributeError
exception.I tried to fix that issue in this commit https://github.com/ondrejmular/dacite/commit/37a7d1f4083126ce698797ff945340560764fc4d. With this commit, dacite test suite is passing.
I have not created a PR just yet, as after a further research I found that there are some other changes that may affect functionality of this lib even though tests are passing. I've noticed that
_special
attribute is missing as well (at least intyping.Mapping
), and I think I've seen this attribute used somewhere in the codebase. I wasn't able to find anything related to this in what's new in python 3.9.Here is a difference that I found between python 3.8 and python 3.9 yet: