Skip to content

Commit

Permalink
add Optional
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Jan 28, 2024
1 parent a3671d7 commit b3f0b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/utils/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def choice(
a: Union[np.ndarray, int],
size: Union[int, Tuple[int, ...]] = None,
size: Optional[Union[int, Tuple[int, ...]]] = None,
replace: bool = True,
p: Optional[np.ndarray] = None,
):
Expand Down

0 comments on commit b3f0b8d

Please sign in to comment.