Provide CHNO example (#158) #339
Annotations
7 errors
pyright:
dpgen2/entrypoint/main.py#L356
Argument of type "list[SupportsRichComparison] | None" cannot be assigned to parameter "iterations" of type "List[int] | None" in function "download_by_def" (reportGeneralTypeIssues)
|
pyright:
dpgen2/entrypoint/submit.py#L807
Argument of type "SupportsRichComparison" cannot be assigned to parameter "__s" of type "slice" in function "__getitem__"
Type "SupportsRichComparison" cannot be assigned to type "slice"
"SupportsDunderGT[Any]" is incompatible with "slice" (reportGeneralTypeIssues)
|
pyright:
dpgen2/exploration/report/report_trust_levels_random.py#L85
Expression of type "list[SupportsRichComparison]" cannot be assigned to return type "List[Tuple[int, int]]"
"list[SupportsRichComparison]" is incompatible with "List[Tuple[int, int]]"
Type parameter "_T@list" is invariant, but "SupportsRichComparison" is not the same as "Tuple[int, int]" (reportGeneralTypeIssues)
|
pyright:
dpgen2/utils/download_dpgen2_artifacts.py#L171
Expression of type "list[SupportsRichComparison]" cannot be assigned to declared type "List[int] | None"
Type "list[SupportsRichComparison]" cannot be assigned to type "List[int] | None"
"list[SupportsRichComparison]" is incompatible with "List[int]"
Type parameter "_T@list" is invariant, but "SupportsRichComparison" is not the same as "int"
Type cannot be assigned to type "None" (reportGeneralTypeIssues)
|
pyright:
dpgen2/utils/download_dpgen2_artifacts.py#L187
Argument of type "list[SupportsRichComparison]" cannot be assigned to parameter "key" of type "str | List[str]" in function "query_step_by_key"
Type "list[SupportsRichComparison]" cannot be assigned to type "str | List[str]"
"list[SupportsRichComparison]" is incompatible with "str"
"list[SupportsRichComparison]" is incompatible with "List[str]"
Type parameter "_T@list" is invariant, but "SupportsRichComparison" is not the same as "str" (reportGeneralTypeIssues)
|
pyright:
dpgen2/utils/download_dpgen2_artifacts.py#L191
Argument of type "SupportsRichComparison" cannot be assigned to parameter "key" of type "str | List[str]" in function "get_step" (reportGeneralTypeIssues)
|
pyright
6 errors
|