Skip to content

Conversation

@tony
Copy link
Member

@tony tony commented Feb 7, 2024

See also: tmux-python/libtmux#515

Changes

QueryList

  • Fix support for generics

@codecov
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f898b6) 62.64% compared to head (e12b880) 62.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #453      +/-   ##
==========================================
+ Coverage   62.64%   62.67%   +0.02%     
==========================================
  Files          39       39              
  Lines        3443     3445       +2     
  Branches      927      927              
==========================================
+ Hits         2157     2159       +2     
  Misses        770      770              
  Partials      516      516              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tony tony force-pushed the query-list-typings branch from 4bb25cd to 4097b09 Compare February 7, 2024 15:13
tony added 5 commits February 7, 2024 09:28
src/libvcs/_internal/query_list.py:307: error: List comprehension has incompatible type List[tuple[Any, T]]; expected List[T]  [misc]
src/libvcs/_internal/query_list.py:376: error: Incompatible types in assignment (expression has type "Callable[[str | list[Any]], bool]", variable has type "Callable[[T], bool]")  [assignment]
tests/_internal/test_query_list.py:262: error: Argument 1 to "filter" of "QueryList" has incompatible type "Mapping[str, str | list[str]]"; expected "Callable[[dict[str, Any]], bool] | dict[str, Any] | None"  [arg-type]
tests/_internal/test_query_list.py:275: error: Argument 1 to "get" of "QueryList" has incompatible type "Mapping[str, str | list[str]] | None"; expected "Callable[[dict[str, Any]], bool] | dict[str, Any] | None"  [arg-type]
tests/_internal/test_query_list.py:281: error: Argument 1 to "get" of "QueryList" has incompatible type "Mapping[str, str | list[str]] | None"; expected "Callable[[dict[str, Any]], bool] | dict[str, Any] | None"  [arg-type]
tests/_internal/test_query_list.py:288: error: Argument 1 to "get" of "QueryList" has incompatible type "Mapping[str, str | list[str]] | None"; expected "Callable[[dict[str, Any]], bool] | dict[str, Any] | None"  [arg-type]
@tony tony force-pushed the query-list-typings branch from 4097b09 to e12b880 Compare February 7, 2024 15:30
@tony tony merged commit 8e1cbe8 into master Feb 7, 2024
@tony tony deleted the query-list-typings branch February 7, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants