-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reimplement dataaccessor #66
Commits on Aug 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1af7698 - Browse repository at this point
Copy the full SHA 1af7698View commit details -
Fixing #53. Following advice from @suvayu: class DataAccessor(object,…
… metaclass=RequiredAttributesMetaclass), i.e. DataAccessor inheriting from RequiredAttributesMetaclass is an overkill, since RequiredAttributesMetaclass does nothing more than checking for required attributes. requiredatts.py can be removed and DataAccessor can be turned into a dataclass, which will have the required arguments declared.
Configuration menu - View commit details
-
Copy full SHA for 7e58d00 - Browse repository at this point
Copy the full SHA 7e58d00View commit details -
Configuration menu - View commit details
-
Copy full SHA for fef1a47 - Browse repository at this point
Copy the full SHA fef1a47View commit details -
Configuration menu - View commit details
-
Copy full SHA for d11e570 - Browse repository at this point
Copy the full SHA d11e570View commit details -
Configuration menu - View commit details
-
Copy full SHA for c336732 - Browse repository at this point
Copy the full SHA c336732View commit details -
Same line of reasoning as for commit 7e58d00: the enforcement of requ…
…ired attributes is much simpler achieved by defining a Python dataclass instead of inheriting from a metaclass.
Configuration menu - View commit details
-
Copy full SHA for 5a8da91 - Browse repository at this point
Copy the full SHA 5a8da91View commit details -
Shortening of super(class, self).__init__ but requires Python >=3.10.…
… Third commit of this sort.
Configuration menu - View commit details
-
Copy full SHA for 179e765 - Browse repository at this point
Copy the full SHA 179e765View commit details -
Apparently, you shouldn't do super(FitsImage, self).__init__() if the…
… parent class of FitsImage is a dataclass. In this case that will yield: TypeError: DataAccessor.__init__() missing 11 required positional arguments:....
Configuration menu - View commit details
-
Copy full SHA for a7fa56d - Browse repository at this point
Copy the full SHA a7fa56dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51d5323 - Browse repository at this point
Copy the full SHA 51d5323View commit details -
Solving two mypy complaints by following advice from SO: https://stac…
Configuration menu - View commit details
-
Copy full SHA for d163f9b - Browse repository at this point
Copy the full SHA d163f9bView commit details