-
Notifications
You must be signed in to change notification settings - Fork 9
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
Preserving of optimisation results implemented #37
Conversation
|
||
@staticmethod | ||
def _get_class(class_path: str) -> Type[INSTANCE_OR_CALLABLE]: | ||
"""Gets the object type from the class_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
этот метод скрытый, зачем его документировать докстрингами?
если им можно пользоваться, то почему он не может быть обычным?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Документировать не обязательно, но лишним не будет. В таком виде взял из FEDOT-а.
"""Decodes every JSON-object to python class/func object or just returns dict | ||
|
||
Args: | ||
json_obj: dict[str, Any] to be decoded into Python class, function or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
типы объектов принималось обозначать через type
, то есть dict[str, Any]
в таком случае этот объект будет в симпатишном квадратике
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
при этом сами объекты, например Point, Domain и прочее, вот так -> :obj:Domain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пока просто убрал дублирующую type hint-ы типизацию.
Results of gen. dis. can be saved in JSON using Result class.