khalidmammadov opened a new pull request #20504:
URL: https://github.com/apache/airflow/pull/20504


   Part of https://github.com/apache/airflow/issues/19891
   
   Fixes number of issues reported by MyPy:
   - Handling case when regex does not match anything
   - Providing possible types for "template_env" variable explicitly
   - Removed Overloading for the functions. I don't see any reason why they are 
necessary. @ashb Please comment otherwise as they were added in #20000
   - Better handling for dynamic field access for `localize` method
   - `relativedelta` does not define type for `seconds` and accepts float (I 
tested empirically) as well which MyPy complains that is not allowed. So, 
ignoring
   - Added one more test case for correct_maybe_zipped to check for an empty 
input
   
   This is Part 1 for (airflow/utils) and will do Part 2 in a separate PR to 
keep scope small for review and focus.
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to