Skip to content

Commit

Permalink
PR CI fix: Python typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia-Shutov committed Aug 21, 2023
1 parent 2e08f4b commit 6fc8165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/random_forestry/validators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List, Type
from typing import Type


def is_positive(t: Type | List, n) -> bool:
def is_positive(t, n) -> bool:
if not isinstance(t, list):
return isinstance(n, t) and n > 0
else:
Expand Down

0 comments on commit 6fc8165

Please sign in to comment.