Skip to content

Commit

Permalink
[late] fix list of immutable types
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 16, 2023
1 parent 8062c40 commit 850266d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion late/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class _LateBound(NamedTuple):


def late(o: _T | Iterator[_V] | Callable[[], _R]) -> _T | _V | _R:
if isinstance(o, int | float | str | bytes | bool | tuple | bytearray | frozenset):
if o is None or isinstance(o, int | float | bool | str | bytes | tuple | frozenset):
return o # type: ignore

return _LateBound(actual=o) # type: ignore
Expand Down

0 comments on commit 850266d

Please sign in to comment.