Skip to content

Commit 2904f50

Browse files
committed
merging in pyright-ratchet-errors.txt additions
1 parent a34eef0 commit 2904f50

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

portal-backend/pyright-ratchet-errors.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ api.py: error: Argument of type "Column[int]" cannot be assigned to parameter "n
66
api.py: error: Argument of type "Column[str]" cannot be assigned to parameter "name" of type "str" in function "__init__"
77
api.py: error: Argument of type "Column[str]" cannot be assigned to parameter "subtype_code" of type "str" in function "get_model_ids_by_subtype_code_and_node_level"
88
api.py: error: Argument of type "dict[bool, str]" cannot be assigned to parameter "func" of type "PythonFuncType" in function "map" (reportArgumentType)
9+
api.py: error: Argument of type "dict[str, str]" cannot be assigned to parameter "func" of type "PythonFuncType" in function "map"
910
api.py: error: Argument of type "float | None" cannot be assigned to parameter "max_fdr" of type "float" in function "get_sig_context_dataframe"
1011
api.py: error: Argument of type "float | None" cannot be assigned to parameter "min_abs_effect_size" of type "float" in function "get_sig_context_dataframe"
1112
api.py: error: Argument of type "float | None" cannot be assigned to parameter "min_frac_dep_in" of type "float" in function "get_sig_context_dataframe"
@@ -296,13 +297,22 @@ index.py: error: Argument of type "Column[int]" cannot be assigned to parameter
296297
index.py: error: Argument of type "Column[int]" cannot be assigned to parameter "entity_id" of type "int" in function "get_relation_to_entity"
297298
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "compound_id" of type "str" in function "get_all_datasets_containing_compound"
298299
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "compound_id" of type "str" in function "get_heatmap_dose_curves_tab_drc_options"
300+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "compound_id" of type "str" in function "get_predictive_models_for_compound"
299301
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "compound_label" of type "str" in function "get_heatmap_dose_curves_tab_drc_options"
302+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "dataset_given_id" of type "str" in function "get_correlation_for_entity"
303+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "dataset_id" of type "str" in function "get_dataset_label"
300304
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "key" of type "str" in function "__getitem__"
301305
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "key" of type "str" in function "get"
306+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_dataset_given_id" of type "str" in function "get_interactive_url_for_entity"
307+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_feature_id" of type "str" in function "get_correlation_for_entity"
308+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_feature_id" of type "str" in function "get_interactive_url_for_entity"
309+
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_feature_id" of type "str" in function "get_relation_to_entity"
302310
index.py: error: Argument of type "Column[str]" cannot be assigned to parameter "row_name" of type "str" in function "valid_row"
303311
index.py: error: Argument of type "DependencyDataset | None" cannot be assigned to parameter "object" of type "DependencyDataset" in function "append"
312+
index.py: error: Argument of type "str | None" cannot be assigned to parameter "pred_model_feature_type" of type "str" in function "get_relation_to_entity"
304313
index.py: error: Argument of type "str | None" cannot be assigned to parameter "x" of type "ConvertibleToInt" in function "__new__"
305314
index.py: error: Cannot access attribute "any" for class "List[Gene]"
315+
index.py: error: Cannot access attribute "entrez_id" for class "Entity"
306316
index.py: error: Cannot access attribute "has" for class "DependencyDataset"
307317
index.py: error: Cannot access attribute "has" for class "Entity"
308318
index.py: error: Invalid conditional operand of type "Column[int]"
@@ -365,16 +375,22 @@ models.py: error: "matrix" is not a known attribute of "None" (reportOptionalMem
365375
models.py: error: "RelationshipProperty[Any]" is not iterable
366376
models.py: error: "taiga_id" is not a known attribute of "None" (reportOptionalMemberAccess)
367377
models.py: error: Argument of type "ArrayLike | float | Number | number[Any, int | float | complex] | Index | Series | Unknown | ArrowExtensionArray | NAType | NaTType | Timestamp | Timedelta | Any | DatetimeIndex | TimedeltaIndex | BooleanArray | FloatingArray | IntegerArray | ndarray[_AnyShape, dtype[signedinteger[_64Bit]]]" cannot be assigned to parameter "x" of type "ConvertibleToFloat" in function "__new__"
378+
models.py: error: Argument of type "Column[int]" cannot be assigned to parameter "entity_id" of type "int" in function "get"
368379
models.py: error: Argument of type "Column[int]" cannot be assigned to parameter "entity_id" of type "int" in function "integrate_size_and_label_data"
369380
models.py: error: Argument of type "Column[int]" cannot be assigned to parameter "entity_id" of type "int" in function "legacy_dataset_contains_entity"
370381
models.py: error: Argument of type "Column[str] | str" cannot be assigned to parameter "s" of type "str | bytes | bytearray" in function "loads"
382+
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "dataset_given_id" of type "str" in function "get_correlation_for_entity"
383+
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "dataset_id" of type "str" in function "get_dataset_feature_type"
371384
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "dataset_id" of type "str" in function "get_dataset_label"
372385
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "feature_label" of type "str" in function "get_entity_summary_metadata"
373386
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "feature_label" of type "str" in function "get_feature_data"
374387
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "feature" of type "str" in function "get_row_of_values"
375388
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "file_path" of type "str" in function "get_row_of_values"
376389
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "key" of type "str" in function "get"
377390
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
391+
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_dataset_given_id" of type "str" in function "get_interactive_url_for_entity"
392+
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_feature_id" of type "str" in function "get_correlation_for_entity"
393+
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "pred_model_feature_id" of type "str" in function "get_interactive_url_for_entity"
378394
models.py: error: Argument of type "Column[str]" cannot be assigned to parameter "s" of type "str | bytes | bytearray" in function "loads"
379395
models.py: error: Argument of type "Column[TabularEnum]" cannot be assigned to parameter "key" of type "BiomarkerEnum | DependencyEnum | TabularEnum" in function "__getitem__"
380396
models.py: error: Argument of type "Column[TabularEnum]" cannot be assigned to parameter "key" of type "TabularEnum" in function "__getitem__"
@@ -383,6 +399,7 @@ models.py: error: Argument of type "List[str] | None" cannot be assigned to para
383399
models.py: error: Argument of type "list[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
384400
models.py: error: Argument of type "RelationshipProperty[Any]" cannot be assigned to parameter "onclause" of type "_OnClauseArgument | None" in function "join"
385401
models.py: error: Argument of type "RelationshipProperty[Any]" cannot be assigned to parameter "onclause" of type "_OnClauseArgument | None" in function "outerjoin"
402+
models.py: error: Argument of type "str | None" cannot be assigned to parameter "pred_model_feature_type" of type "str" in function "get_relation_to_entity"
386403
models.py: error: Argument of type "Unknown | Column[int]" cannot be assigned to parameter "index" of type "int" in function "get_row_of_values"
387404
models.py: error: Cannot access attribute "__table__" for class "type[Fusion]"
388405
models.py: error: Cannot access attribute "__table__" for class "type[Mutation]"
@@ -396,6 +413,7 @@ models.py: error: Cannot access attribute "download_file" for class "_File*"
396413
models.py: error: Cannot access attribute "gene" for class "_Gene*"
397414
models.py: error: Cannot access attribute "name" for class "Dataset*"
398415
models.py: error: Cannot access attribute "nominal_range" for class "TabularDatasetMeta"
416+
models.py: error: Cannot access attribute "target_gene" for class "Gene"
399417
models.py: error: Cannot access attribute "unique" for class "ndarray[_AnyShape, dtype[Any]]"
400418
models.py: error: Cannot assign to attribute "funding" for class "DownloadRelease*"
401419
models.py: error: Expression of type "None" cannot be assigned to parameter of type "Dict[int, GroupAuthConfig]"
@@ -477,6 +495,7 @@ predictability_loader.py: error: Invalid conditional operand of type "ColumnElem
477495
predictability_loader.py: error: No overloads for "get" match the provided arguments (reportCallIssue)
478496
predictability_loader.py: error: No overloads for "read_csv" match the provided arguments (reportCallIssue)
479497
predictability_loader.py: error: No parameter named "background" (reportCallIssue)
498+
predictability_loader.py: error: No parameter named "dataset_given_id" (reportCallIssue)
480499
predictability_loader.py: error: No parameter named "dataset_id" (reportCallIssue)
481500
predictability_loader.py: error: No parameter named "dataset" (reportCallIssue)
482501
predictability_loader.py: error: No parameter named "feature_id" (reportCallIssue)
@@ -706,9 +725,13 @@ transcription_start_site_loader.py: error: No parameter named "gene_id" (reportC
706725
transcription_start_site_loader.py: error: No parameter named "label" (reportCallIssue)
707726
transcription_start_site_loader.py: error: No parameter named "three_prime_position" (reportCallIssue)
708727
util.py: error: Expression of type "None" cannot be assigned to parameter of type "Client"
728+
util.py: error: Expression of type "None" cannot be assigned to return type "str"
709729
util.py: error: Type "None" is not assignable to return type "str"
730+
utils.py: error: "abs_dest_path" is possibly unbound (reportPossiblyUnboundVariable)
731+
utils.py: error: "base_name" is possibly unbound (reportPossiblyUnboundVariable)
710732
utils.py: error: Argument of type "list[Column[str]]" cannot be assigned to parameter "path" of type "List[str]" in function "__init__"
711733
utils.py: error: Argument of type "Unknown | None" cannot be assigned to parameter "string" of type "bytes | bytearray" in function "quote"
734+
utils.py: error: Argument of type "Unknown | None" cannot be assigned to parameter "string" of type "bytes | bytearray" in function "quote" (reportArgumentType)
712735
utils.py: error: Cannot assign to attribute "_depmap_interactive_config" for class "Flask"
713736
utils.py: error: Cannot assign to attribute "_depmap_taiga_id_to_download_url" for class "Flask"
714737
utils.py: error: Invalid conditional operand of type "ColumnElement[bool]"
@@ -769,6 +792,7 @@ views.py: error: Argument of type "Unknown | None" cannot be assigned to paramet
769792
views.py: error: Argument to class must be a base class (reportGeneralTypeIssues)
770793
views.py: error: Cannot access attribute "any" for class "List[Gene]"
771794
views.py: error: Cannot access attribute "apply" for class "FunctionType"
795+
views.py: error: Cannot access attribute "compound_id" for class "Entity"
772796
views.py: error: Cannot access attribute "entrez_id" for class "Entity"
773797
views.py: error: Cannot access attribute "rename" for class "float"
774798
views.py: error: Cannot access attribute "rename" for class "int"

0 commit comments

Comments
 (0)