* chore: add type hint for reconstructor
* chore: fix attr-defined
* chore: use defined typevar
* chore: ignore type error
reg._new_mappers = False
-def reconstructor(fn):
+def reconstructor(fn: _Fn) -> _Fn:
"""Decorate a method as the 'reconstructor' hook.
Designates a single method as the "reconstructor", an ``__init__``-like
:meth:`.InstanceEvents.load`
"""
- fn.__sa_reconstructor__ = True
+ fn.__sa_reconstructor__ = True # type: ignore[attr-defined]
return fn