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

Work around typing issue in examples and providers #35494

Merged
merged 7 commits into from Nov 7, 2023

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Nov 7, 2023

These are typing issues surfaced by #35023. They are strictly unrelated to the PR but we should probably fix them.

CI errors that showed the errors: https://github.com/apache/airflow/actions/runs/6770061856/job/18399192125?pr=35023

@uranusjr uranusjr changed the title Work around typing issue in workday examples Work around typing issue in workday examples and providers Nov 7, 2023
@uranusjr uranusjr changed the title Work around typing issue in workday examples and providers Work around typing issue in examples and providers Nov 7, 2023
Since this is just an example, we'll just ignore this and not worry
too much about it.
The assignment syntax doesn't seem to be type-safe (although working at
runtime), let's use a more semantic method.
Some of the parameters were too lax for Pandas and need to be tightened
up.
This seems to be a definition issue between Numpy and Pandas? Not sure,
but this works at runtime so let's not dig too deep. Simply annotating
the variable as Any is enough to work around the problem.
This is just too much. Let's cast and not worry about it.
Copy link
Member

@pankajastro pankajastro left a comment

Choose a reason for hiding this comment

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

LGTM

@phanikumv phanikumv merged commit 11bdfe4 into apache:main Nov 7, 2023
46 checks passed
@phanikumv phanikumv deleted the mypy-fix-from-openai-pr branch November 7, 2023 07:32
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
* Work around typing issue in workday examples

Since this is just an example, we'll just ignore this and not worry
too much about it.

* Rewrite Pandas column-renaming

The assignment syntax doesn't seem to be type-safe (although working at
runtime), let's use a more semantic method.

* Fix commin.sql arg type to Pandas

Some of the parameters were too lax for Pandas and need to be tightened
up.

* More column rename fixes

* Work around strict Numpy typing

This seems to be a definition issue between Numpy and Pandas? Not sure,
but this works at runtime so let's not dig too deep. Simply annotating
the variable as Any is enough to work around the problem.

* Work around complex Pandas typing

This is just too much. Let's cast and not worry about it.

* More parameters type fixes
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants