Open MyPyDavid opened 2 months ago
It is not really good practice to use import *, in places where you don't specifically need it, https://peps.python.org/pep-0008/#imports
import *
You don't need to import each key/value pair as a single variable from each module everywhere, I would suggest to refactor those in a type of Python data structure. It can be a simple dict, but also a dataclass https://docs.python.org/3.10/library/dataclasses.html?highlight=dataclasses or enum https://docs.python.org/3.10/library/enum.html?highlight=strenum
dict
dataclass
enum
refactored most import statements, still to do for MaRDI Portal Item / Property Ids
It is not really good practice to use
import *
, in places where you don't specifically need it, https://peps.python.org/pep-0008/#importsYou don't need to import each key/value pair as a single variable from each module everywhere, I would suggest to refactor those in a type of Python data structure. It can be a simple
dict
, but also adataclass
https://docs.python.org/3.10/library/dataclasses.html?highlight=dataclasses orenum
https://docs.python.org/3.10/library/enum.html?highlight=strenum