cpprhtn commented on issue #49309:
URL: https://github.com/apache/airflow/issues/49309#issuecomment-2999739814

   
![Image](https://github.com/user-attachments/assets/27889fec-fca0-461b-b307-ad4a11cdaee4)
   
   `mypy` emits `note: By default the bodies of untyped functions are not 
checked` even without `--check-untyped-defs`
   
   ### Summary
   
   When running `mypy .` **without** passing the `--check-untyped-defs` flag, I 
still see the following note in many places:
   
   ```
   note: By default the bodies of untyped functions are not checked, consider 
using --check-untyped-defs
   ```
   
   This commonly appears inside `__init__` methods or other instance methods 
that look like this:
   
   ```python
   self.some_attr = {}
   ```
   
   I haven’t explicitly enabled `--check-untyped-defs`, but mypy is still 
emitting these notes.
   
   ---
   
   ### Questions
   
   I'm currently working on gradually adding type hints to the Airflow 
codebase. I’d like to know whether it's best to address these notes now or later
   Or is it acceptable to ignore these notes for now during progressive typing?
   
   


-- 
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