Commit 42d4cce
authored
Fix dataclass field types (#257)
There is a (Python?) bug where calling
`dataclasses.fields(some_data_class)` sometimes returns fields where
`type` is a type _name_ instead of a _type_ (for example `'str'` instead
of `<class str>`). This prevents our ORM from working as expected.
The issue can be reproduced in
databrickslabs/ucx#2401, and is currently fixed
using a local workaround see
https://github.com/databrickslabs/ucx/pull/2401/files#diff-40a8f3f4a3a5e5b222ccbfb95204001a6b007c78cbe55b9f1a53af5a8309886eR349
This PR works around the issue globally.
---------
Co-authored-by: Eric Vergnaud <eric.vergnaud@databricks.com>1 parent e6006ae commit 42d4cce
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| |||
0 commit comments