You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s=f"\033[4m\033[1m{self.__class__.__name__}<{self.__class__.__base__.__name__}>\033[0;0m\033[0;0m\n{extra}\n\n\033[1mFields not requested:\033[0;0m\n{unset_fields}"# noqa: E501
762
-
returns
771
+
s=f"\033[4m\033[1m{self.__class__.__name__}<{self.__class__.__base__.__name__}>\033[0;0m\033[0;0m\n{extra}\n\n\033[1mFields not requested:\033[0;0m\n{unset_fields}"# noqa: E501
772
+
returns
763
773
764
-
defnew_getattr(self, attr) ->str:
765
-
ifattrinunset_fields:
766
-
raiseAttributeError(
767
-
f"'{attr}' data is available but has not been requested in 'fields'."
768
-
" A full list of unrequested fields can be found in `fields_not_requested`."
769
-
)
770
-
else:
771
-
raiseAttributeError(
772
-
f"{self.__class__.__name__!r} object has no attribute {attr!r}"
773
-
)
774
-
775
-
data_model.__repr__=new_repr
776
-
data_model.__str__=new_str
777
-
data_model.__getattr__=new_getattr
774
+
defnew_getattr(self, attr) ->str:
775
+
ifattrinunset_fields:
776
+
raiseAttributeError(
777
+
f"'{attr}' data is available but has not been requested in 'fields'."
778
+
" A full list of unrequested fields can be found in `fields_not_requested`."
779
+
)
780
+
else:
781
+
raiseAttributeError(
782
+
f"{self.__class__.__name__!r} object has no attribute {attr!r}"
0 commit comments