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

[ignore] Annotations - file typing #222

Merged
merged 8 commits into from
Oct 26, 2020
Merged

Conversation

wild-endeavor
Copy link
Contributor

@wild-endeavor wild-endeavor commented Oct 25, 2020

for ketan/haytham

  • Moved the test_type_hints file over into the annotated test dir.

@@ -152,6 +152,9 @@ def _local_execute(self, ctx: FlyteContext, **kwargs) -> Union[Tuple[Promise], P
else:
raise Exception("something returned from wf but shouldn't have outputs")

if len(output_names) == 1:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ran into this bug too - will just take your change, whatever we decide on.

flytekit/typing.py Outdated Show resolved Hide resolved
if item not in mimetypes.types_map and f".{item}" not in mimetypes.types_map:
raise Exception(f"{item} not a valid extension according to mimetypes.")

class _SpecificFormatClass(FlyteFilePath):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? you really hate TypeVar?

@wild-endeavor wild-endeavor merged commit de3cc20 into annotations Oct 26, 2020
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