mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-13 07:21:16 +00:00
Fix Python 3.13: classmethod + property unsupported (#448)
* Use own classproperty (don't inherit from property). * Config generation: Rename pathlib._local to pathlib
This commit is contained in:
committed by
GitHub
parent
d05b161e24
commit
1a2cb4d37d
@@ -86,7 +86,7 @@ def get_default_value(field_info: Union[FieldInfo, ComputedFieldInfo], regular_f
|
||||
|
||||
|
||||
def get_type_name(field_type: type) -> str:
|
||||
type_name = str(field_type).replace("typing.", "")
|
||||
type_name = str(field_type).replace("typing.", "").replace("pathlib._local", "pathlib")
|
||||
if type_name.startswith("<class"):
|
||||
type_name = field_type.__name__
|
||||
return type_name
|
||||
|
Reference in New Issue
Block a user