Taragolis commented on code in PR #37540:
URL: https://github.com/apache/airflow/pull/37540#discussion_r1495061759


##########
airflow/configuration.py:
##########
@@ -1883,8 +1884,9 @@ def __getstate__(self):
             ]
         }
 
-    def __setstate__(self, state):
-        self.__init__()
+    def __setstate__(self, state) -> None:
+        """Restore the state of the object from a dictionary representation."""
+        AirflowConfigParser.__init__(self)

Review Comment:
   Solution 1:
   Try to rollback it into the: `self.__init__()` sometimes mypy won't work 
correctly on single file check even if you rebuild and reset cache. In this 
case if mypy complain about it, you might run git commit with `-n` flag which 
skip all checks and commit message, just make sure that it only complains about 
this line.
   After that push, and check is it pass into the CI. I know couple of files 
which never pass in my environment, however there is no problem into the CI
   
   
   If solution 1 doesn't work you could add `# type: ignore[misc]`, but 
something tells me that it should work well. Never know until try it.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to