Skip to content

Commit

Permalink
fix: add runtime_checkable to AttrsInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-minato authored Dec 23, 2024
1 parent 598494a commit 69e9b74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/attr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

from functools import partial
from typing import Callable, Literal, Protocol
from typing import Callable, Literal, Protocol, runtime_checkable

from . import converters, exceptions, filters, setters, validators
from ._cmp import cmp_using
Expand Down Expand Up @@ -34,6 +34,7 @@
dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)


@runtime_checkable
class AttrsInstance(Protocol):
pass

Expand Down

0 comments on commit 69e9b74

Please sign in to comment.