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

Type hints for types and mapper modules #446

Merged
merged 6 commits into from
Feb 7, 2024

Conversation

hashhar
Copy link
Member

@hashhar hashhar commented Feb 3, 2024

Description

Add type hints for mapper and types modules and enables mypy there.

This uncovered some dead code / possibly broken code regarding handling of ambiguous date-time values. This will be fixed separately in a follow-up.

Release notes

(x) This is not user-visible or docs only and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Feb 3, 2024
@hashhar hashhar force-pushed the hashhar/mypy branch 2 times, most recently from c614b3d to 01f15c0 Compare February 3, 2024 13:21
This additionally helps make mypy happy.
Copy link
Member

@hovaesco hovaesco left a comment

Choose a reason for hiding this comment

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

LGTM % what's the plan for TODOs?

trino/types.py Outdated Show resolved Hide resolved
trino/mapper.py Outdated Show resolved Hide resolved
@hashhar
Copy link
Member Author

hashhar commented Feb 5, 2024

@hovaesco Addressed comments. Only last commit has changed.

@hashhar hashhar merged commit 143b6d8 into trinodb:master Feb 7, 2024
12 checks passed
@hashhar hashhar deleted the hashhar/mypy branch February 7, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants