mirror of
https://github.com/correl/typesafe-monads.git
synced 2024-11-14 11:09:36 +00:00
Add __name__ to the "constant" callable in Reader
Without it, the __repr__ of Reader may fail
This commit is contained in:
parent
3d312c1c90
commit
319ac3cb4d
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class Reader(Monad[T], Generic[Env, T]):
|
|||
|
||||
# Update the signature's return annotation to reflect the
|
||||
# concrete type of the wrapped value.
|
||||
__name__ = "constant"
|
||||
__signature__ = inspect.Signature(
|
||||
[
|
||||
inspect.Parameter(
|
||||
|
|
Loading…
Reference in a new issue