Skip to content

Commit

Permalink
Merge pull request #171 from muupan/fix-ci-error-mypy-prioritized
Browse files Browse the repository at this point in the history
Fix mypy error due to numbers.Number
  • Loading branch information
toslunar authored Mar 14, 2022
2 parents cee0777 + a733679 commit a721ddf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pfrl/collections/prioritized.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import collections
from numbers import Number
from typing import (
Any,
Callable,
Expand Down Expand Up @@ -243,7 +242,7 @@ def popleft(self) -> Optional[V]:
return ret


def _find(index_left: int, index_right: int, node: Node, pos: Number) -> int:
def _find(index_left: int, index_right: int, node: Node, pos: float) -> int:
if index_right - index_left == 1:
return index_left
else:
Expand Down

0 comments on commit a721ddf

Please sign in to comment.