attrs/changelog.d/997.change.rst

3 lines
207 B
ReStructuredText
Raw Normal View History

2022-08-16 05:26:50 +00:00
``attrs.has()`` is now a ``TypeGuard`` for ``AttrsInstance``.
That means that type checkers know a class is an instance of an ``attrs`` class if you check it using ``attrs.has()`` (or ``attr.has()``) first.