You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "mobuchowski (via GitHub)" <gi...@apache.org> on 2023/04/17 12:12:20 UTC
[GitHub] [airflow] mobuchowski commented on pull request #30677: Correctly pass a type to attrs.has()
mobuchowski commented on PR #30677:
URL: https://github.com/apache/airflow/pull/30677#issuecomment-1511225746
Thanks for looking into that @uranusjr @potiuk.
It's definitely more matching docs. Interesting thing is that both versions work:
```python
Python 3.9.9 (main, Nov 29 2021, 15:18:55)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import attrs
>>> @attrs.define
... class X:
... a: str
...
>>> attrs.has(X)
True
>>> attrs.has(X(a=""))
True
```
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org