Feature/pdct 1759 make backend config endpoint focused on corpora not #856
Trunk Check
Checked 9 modified files
✖ 12 new lint issues
Details
To reproduce and test locally, run:
trunk check
For help resolving these issues, see our docs on running on PRs or debugging Trunk Check
Annotations
Check failure on line 43 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "obj" of type "Sized" in function "len"
"Column" is incompatible with protocol "Sized"
"__len__" is not present
Check failure on line 51 in app/service/config.py
github-actions / Trunk Check
pyright(reportGeneralTypeIssues)
[new] Expected mapping for dictionary unpack operator
Check failure on line 54 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "title" of type "str" in function "__init__"
"Column" is incompatible with "str"
Check failure on line 55 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "description" of type "str" in function "__init__"
"Column" is incompatible with "str"
Check failure on line 56 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "corpus_import_id" of type "str" in function "__init__"
"Column" is incompatible with "str"
Check failure on line 57 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column | Literal['']" cannot be assigned to parameter "text" of type "str" in function "__init__"
Type "Column | Literal['']" is incompatible with type "str"
"Column" is incompatible with "str"
Check failure on line 59 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "organisation_id" of type "int" in function "__init__"
"Column" is incompatible with "int"
Check failure on line 60 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "organisation_name" of type "str" in function "__init__"
"Column" is incompatible with "str"
Check failure on line 71 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "corpus_import_id" of type "str" in function "_get_family_stats_per_corpus"
"Column" is incompatible with "str"
Check failure on line 72 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "corpus_type_name" of type "str" in function "get"
"Column" is incompatible with "str"
Check failure on line 73 in app/service/config.py
github-actions / Trunk Check
pyright(reportArgumentType)
[new] Argument of type "Column" cannot be assigned to parameter "org_id" of type "int" in function "get"
"Column" is incompatible with "int"
Check failure on line 75 in app/service/config.py
github-actions / Trunk Check
pyright(reportReturnType)
[new] Expression of type "dict[Column, CorpusTypeConfig]" is incompatible with return type "dict[str, CorpusTypeConfig]"
"Column" is incompatible with "str"