nagasrisai opened a new pull request, #64518:
URL: https://github.com/apache/airflow/pull/64518

   The `_get_pod_namespace` method in `FileTaskHandler` has `@staticmethod` 
applied twice in a row:
   
   ```python
   @staticmethod
   @staticmethod
   def _get_pod_namespace(ti: TaskInstance | TaskInstanceHistory):
   ```
   
   Python only needs the decorator once to make a method static. The second 
application is a no-op and doesn't change runtime behaviour, but it's confusing 
to read — it looks like there might be something intentional about the 
duplication when there isn't.
   
   This removes the redundant decorator, leaving just the one needed.
   
   Fixes #64477
   
   ---
   
   **Tests**: No behaviour change, no new tests needed. The method works 
identically before and after — this is purely a code cleanup.
   
   **Checklist**
   - [x] I have read the 
[CONTRIBUTING.rst](https://github.com/apache/airflow/blob/main/contributing-docs/03_contributors_quick_start.rst)
 file
   - [x] My PR title has the correct format
   - [x] My changes are limited to the fix I am describing
   - [x] My changes pass linting and formatting checks


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