Skip to content

Commit

Permalink
Added pytype None checks to base_task.py.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 672978049
Change-Id: Id74e869b94b0fcb658ec022a565ce27100c3899c
  • Loading branch information
Default authored and copybara-github committed Sep 10, 2024
1 parent 04748f9 commit a5316a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/moma/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __init__(self, delegate: observable.Observable):
self._delegate = delegate

@property
def array_spec(self) -> specs.Array:
def array_spec(self) -> Optional[specs.Array]:
delegate_spec = self._delegate.array_spec
if delegate_spec is None:
return delegate_spec
Expand Down

0 comments on commit a5316a4

Please sign in to comment.