Skip to content

Commit

Permalink
Update pyright to 1.1.278
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrattli committed Jan 7, 2023
1 parent 8263b1e commit 26f927b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
language: node
pass_filenames: false
types: [python]
additional_dependencies: ["[email protected].254"]
additional_dependencies: ["[email protected].278"]
repo: local
- hooks:
- id: mypy
Expand Down
4 changes: 3 additions & 1 deletion reactivex/operators/_distinct.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def distinct_(
key_mapper: Optional[typing.Mapper[_T, _TKey]] = None,
comparer: Optional[typing.Comparer[_TKey]] = None,
) -> Callable[[Observable[_T]], Observable[_T]]:
comparer_ = comparer or default_comparer
comparer_: typing.Comparer[_TKey] = comparer or cast(
typing.Comparer[_TKey], default_comparer
)

def distinct(source: Observable[_T]) -> Observable[_T]:
"""Returns an observable sequence that contains only distinct
Expand Down

0 comments on commit 26f927b

Please sign in to comment.