Skip to content
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

Added ty.checked decorator. #1091

Merged
merged 6 commits into from
Oct 19, 2020
Merged

Added ty.checked decorator. #1091

merged 6 commits into from
Oct 19, 2020

Conversation

jaheba
Copy link
Contributor

@jaheba jaheba commented Oct 16, 2020

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


def get_param_default(param):
if param.default == inspect.Parameter.empty:
return ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pydantic. I've copied this logic from validated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaheba jaheba merged commit a593757 into awslabs:master Oct 19, 2020
@jaheba jaheba deleted the ty-checked branch October 19, 2020 12:56
kashif pushed a commit to kashif/gluon-ts that referenced this pull request Dec 15, 2020
* Added ty.checked decorator.

* Added Stateful and Stateless to `ty`.

Disallow assignment to stateless objects outside of __init__.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants