-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
724 fix incorrect redundant-expr error for isinstance on constra… #754
base: master
Are you sure you want to change the base?
724 fix incorrect redundant-expr error for isinstance on constra… #754
Conversation
for more information, see https://pre-commit.ci
This comment has been minimized.
This comment has been minimized.
... | ||
if isinstance(t, list): # E: Condition is always false [redundant-expr] | ||
... | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens when:
if isinstance(t, int) and isinstance(1, int):
self.typevar = typevar | ||
|
||
def accept(self, visitor: TypeVisitor[T]) -> T: | ||
return self.type.accept(visitor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to make sure cache works with this
@@ -219,6 +219,7 @@ | |||
TypeOfAny, | |||
TypeTranslator, | |||
TypeType, | |||
TypeVarConstraintWrapper, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a changelog entry
Diff from mypy_primer, showing the effect of this PR on open source code: zipp (https://github.com/jaraco/zipp)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/unittest/_log.pyi:19: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.7.0+dev.677601e2183467a65976dca0505510b7e8bf41f0
+ note: use --pdb to drop into pdb
- zipp/__init__.py: note: In function "_parents":
- zipp/__init__.py:27:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:43:5: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:43:12: error: No overload variant of "islice" matches argument types "None", "int", "None" [call-overload]
- zipp/__init__.py:43:12: note: Possible overload variants:
- zipp/__init__.py:43:12: note: def [_T] __init__(self, Iterable[_T@islice], int | None, /) -> islice[_T@islice]
- zipp/__init__.py:43:12: note: def [_T] __init__(self, Iterable[_T@islice], int | None, int | None, int | None = ..., /) -> islice[_T@islice]
- zipp/__init__.py:43:29: error: Call to incomplete function "_ancestry" in typed context [no-untyped-call]
- zipp/__init__.py:43:29: error: "_ancestry" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:43:29: note: Type is "def (path: Untyped) -> None"
- zipp/__init__.py:43:39: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In function "_ancestry":
- zipp/__init__.py:46:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:46:1: error: The return type of a generator function should be "Generator" or one of its supertypes [misc]
- zipp/__init__.py:67:5: error: Usage of untyped name "path'" in typed context [no-untyped-usage]
- zipp/__init__.py:67:12: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:68:11: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:69:15: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:70:9: error: Usage of untyped name "path'" in typed context [no-untyped-usage]
- zipp/__init__.py:70:22: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated))") [no-any-expr]
- zipp/__init__.py:70:22: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:70:38: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: At top level:
- zipp/__init__.py:73:11: error: Expression type contains "Any" (has type overloaded function) [no-any-expr]
- zipp/__init__.py: note: In function "_difference":
- zipp/__init__.py:77:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:82:5: error: No return value expected [return-value]
- zipp/__init__.py:82:12: error: Expression type contains "Any" (has type "filterfalse[Any (unannotated)]") [no-any-expr]
- zipp/__init__.py:82:34: error: Expression type contains "Any" (has type "set[Any (unannotated)]") [no-any-expr]
- zipp/__init__.py:82:38: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:82:64: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "__init__" of class "InitializedState":
- zipp/__init__.py:90:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:91:23: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:92:25: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py:93:27: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:93:35: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py: note: In member "__getstate__" of class "InitializedState":
- zipp/__init__.py:96:9: error: No return value expected [return-value]
- zipp/__init__.py:96:16: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:96:16: error: Expression type contains "Any" (has type "(tuple[Untyped, ...], dict[str, Untyped])") [no-any-expr]
- zipp/__init__.py:96:29: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py: note: In member "__setstate__" of class "InitializedState":
- zipp/__init__.py:98:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:99:24: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:99:24: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:100:27: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:100:35: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py: note: In member "_implied_dirs" of class "CompleteDirs":
- zipp/__init__.py:115:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py: note: In class "CompleteDirs":
- zipp/__init__.py:115:5: error: Type of decorated function contains type "Any" ("def (names: Untyped) -> None") [no-any-decorated]
- zipp/__init__.py: note: In member "_implied_dirs" of class "CompleteDirs":
- zipp/__init__.py:116:19: error: Need type annotation for "parents" [var-annotated]
- zipp/__init__.py:116:19: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-var-annotated for more info
- zipp/__init__.py:116:49: error: Argument 1 to "from_iterable" of "chain" has incompatible type "map[None]"; expected "Iterable[Iterable[Never]]" [arg-type]
- zipp/__init__.py:116:53: error: Expression type contains "Any" (has type "def (path: Untyped) -> None") [no-any-expr]
- zipp/__init__.py:116:63: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:118:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:118:16: error: No overload variant matches argument type "None" [call-overload]
- zipp/__init__.py:118:16: note: Possible overload variants:
- zipp/__init__.py:118:16: note: def [_KT, _VT, _T] fromkeys(cls, Iterable[_T@fromkeys], None = ..., /) -> dict[_T@fromkeys, Any | None]
- zipp/__init__.py:118:16: note: def [_KT, _VT, _T, _S] fromkeys(cls, Iterable[_T@fromkeys], _S@fromkeys, /) -> dict[_T@fromkeys, _S@fromkeys]
- zipp/__init__.py:118:24: error: Call to incomplete function "_difference" in typed context [no-untyped-call]
- zipp/__init__.py:118:24: error: "_difference" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:118:24: note: Type is "def (minuend: Untyped, subtrahend: Untyped) -> None"
- zipp/__init__.py:118:45: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "namelist" of class "CompleteDirs":
- zipp/__init__.py:120:5: error: Return type "None" of "namelist" incompatible with return type "list[str]" in supertype "ZipFile" [override]
- zipp/__init__.py:120:5: error: Method "namelist" is not using @override but is overriding a method in class "zipfile.ZipFile" [explicit-override]
- zipp/__init__.py:120:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-explicit-override for more info
- zipp/__init__.py:122:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:122:24: error: No overload variant of "list" matches argument type "None" [call-overload]
- zipp/__init__.py:122:24: note: Possible overload variants:
- zipp/__init__.py:122:24: note: def [_T] __init__(self) -> list[_T@list]
- zipp/__init__.py:122:24: note: def [_T] __init__(self, Iterable[_T@list], /) -> list[_T@list]
- zipp/__init__.py:122:29: error: Call to incomplete function "_implied_dirs" of "CompleteDirs" in typed context [no-untyped-call]
- zipp/__init__.py:122:29: error: "_implied_dirs" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:122:29: note: Type is "_NamedCallable & (names: Untyped) -> None"
- zipp/__init__.py: note: In member "_name_set" of class "CompleteDirs":
- zipp/__init__.py:125:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:125:16: error: No overload variant of "set" matches argument type "None" [call-overload]
- zipp/__init__.py:125:16: note: Possible overload variants:
- zipp/__init__.py:125:16: note: def [_T] __init__(self) -> set[_T@set]
- zipp/__init__.py:125:16: note: def [_T] __init__(self, Iterable[_T@set], /) -> set[_T@set]
- zipp/__init__.py:125:20: error: "namelist" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py: note: In member "resolve_dir" of class "CompleteDirs":
- zipp/__init__.py:127:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:132:17: error: "_name_set" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:133:19: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:133:19: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:134:21: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:134:21: error: Unsupported right operand type for in ("None") [operator]
- zipp/__init__.py:134:43: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:134:43: error: Unsupported right operand type for in ("None") [operator]
- zipp/__init__.py:135:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:135:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:135:16: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:135:42: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "getinfo" of class "CompleteDirs":
- zipp/__init__.py:137:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:137:5: error: Return type "None" of "getinfo" incompatible with return type "ZipInfo" in supertype "ZipFile" [override]
- zipp/__init__.py:137:5: error: Method "getinfo" is not using @override but is overriding a method in class "zipfile.ZipFile" [explicit-override]
- zipp/__init__.py:142:13: error: No return value expected [return-value]
- zipp/__init__.py:142:36: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:144:20: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:144:42: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:144:42: error: Unsupported right operand type for in ("None") [operator]
- zipp/__init__.py:144:54: error: "_name_set" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:146:13: error: No return value expected [return-value]
- zipp/__init__.py:146:45: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "make" of class "CompleteDirs":
- zipp/__init__.py:149:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py: note: In class "CompleteDirs":
- zipp/__init__.py:149:5: error: Type of decorated function contains type "Any" ("def (cls: type[CompleteDirs], source: Untyped) -> None") [no-any-decorated]
- zipp/__init__.py: note: In member "make" of class "CompleteDirs":
- zipp/__init__.py:154:23: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:155:13: error: No return value expected [return-value]
- zipp/__init__.py:157:27: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:158:13: error: No return value expected [return-value]
- zipp/__init__.py:158:24: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:165:9: error: No return value expected [return-value]
- zipp/__init__.py: note: In member "inject" of class "CompleteDirs":
- zipp/__init__.py:173:21: error: Call to incomplete function "_implied_dirs" of "CompleteDirs" in typed context [no-untyped-call]
- zipp/__init__.py:173:21: note: Type is "_NamedCallable & (names: Untyped) -> None"
- zipp/__init__.py:173:21: error: "_implied_dirs" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:173:21: error: "None" has no attribute "__iter__" (not iterable) [attr-defined]
- zipp/__init__.py: note: In member "namelist" of class "FastLookup":
- zipp/__init__.py:184:5: error: Return type "None" of "namelist" incompatible with return type "list[str]" in supertype "ZipFile" [override]
- zipp/__init__.py:184:5: error: Method "namelist" is not using @override but is overriding a method in class "zipp.CompleteDirs" [explicit-override]
- zipp/__init__.py:186:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:186:20: error: Cannot determine type of "__names" [has-type]
- zipp/__init__.py:186:20: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-has-type for more info
- zipp/__init__.py:187:24: error: "namelist" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py: note: In member "_name_set" of class "FastLookup":
- zipp/__init__.py:190:5: error: Method "_name_set" is not using @override but is overriding a method in class "zipp.CompleteDirs" [explicit-override]
- zipp/__init__.py:192:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:192:20: error: Cannot determine type of "__lookup" [has-type]
- zipp/__init__.py:193:25: error: "_name_set" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py: note: In function "_extract_text_encoding":
- zipp/__init__.py:197:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:201:5: error: No return value expected [return-value]
- zipp/__init__.py:201:12: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- zipp/__init__.py:201:12: error: Expression type contains "Any" (has type "(Any | None, tuple[Untyped, ...], dict[str, Untyped])") [no-any-expr]
- zipp/__init__.py:201:26: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:201:50: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:201:56: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py: note: In member "__init__" of class "Path":
- zipp/__init__.py:309:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:319:21: error: Call to incomplete function "make" of "CompleteDirs" in typed context [no-untyped-call]
- zipp/__init__.py:319:21: note: Type is "_NamedCallable & (source: Untyped) -> None"
- zipp/__init__.py:319:21: error: "make" of "CompleteDirs" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:319:37: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "__eq__" of class "Path":
- zipp/__init__.py:322:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:322:5: error: Return type "None" of "__eq__" incompatible with return type "bool" in supertype "object" [override]
- zipp/__init__.py:322:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- zipp/__init__.py:327:34: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:328:13: error: No return value expected [return-value]
- zipp/__init__.py:329:9: error: No return value expected [return-value]
- zipp/__init__.py:329:40: error: Expression type contains "Any" (has type "(Untyped, Untyped)") [no-any-expr]
- zipp/__init__.py:329:41: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:329:53: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "__hash__" of class "Path":
- zipp/__init__.py:331:5: error: Return type "None" of "__hash__" incompatible with return type "int" in supertype "object" [override]
- zipp/__init__.py:331:5: error: Method "__hash__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- zipp/__init__.py:332:9: error: No return value expected [return-value]
- zipp/__init__.py: note: In member "open" of class "Path":
- zipp/__init__.py:334:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:340:12: error: "is_dir" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:340:12: error: Condition is always false [redundant-expr]
- zipp/__init__.py:340:12: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- zipp/__init__.py:343:12: error: Left operand of "and" is always true [redundant-expr]
- zipp/__init__.py:343:16: error: "exists" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:345:18: error: "None" has no attribute "open" [attr-defined]
- zipp/__init__.py:345:56: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:347:16: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:347:16: error: Expression type contains "Any" (has type "tuple[Untyped, ...] | dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py:347:24: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py:349:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:351:34: error: Call to incomplete function "_extract_text_encoding" in typed context [no-untyped-call]
- zipp/__init__.py:351:34: note: Type is "def (encoding: Untyped =, *args: Untyped, **kwargs: Untyped) -> None"
- zipp/__init__.py:351:34: error: "_extract_text_encoding" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:351:34: error: "None" object is not iterable [misc]
- zipp/__init__.py:351:58: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:351:66: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py:352:9: error: No return value expected [return-value]
- zipp/__init__.py:352:41: error: Cannot determine type of "encoding" [has-type]
- zipp/__init__.py:352:52: error: Cannot determine type of "args'" [has-type]
- zipp/__init__.py:352:60: error: Cannot determine type of "kwargs'" [has-type]
- zipp/__init__.py: note: In member "_base" of class "Path":
- zipp/__init__.py:355:9: error: No return value expected [return-value]
- zipp/__init__.py:355:49: error: "None" has no attribute "filename" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:358:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "name" of class "Path":
- zipp/__init__.py:359:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:359:16: error: "_base" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:359:16: error: "None" has no attribute "name" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:362:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "suffix" of class "Path":
- zipp/__init__.py:363:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:363:16: error: "_base" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:363:16: error: "None" has no attribute "suffix" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:366:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "suffixes" of class "Path":
- zipp/__init__.py:367:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:367:16: error: "_base" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:367:16: error: "None" has no attribute "suffixes" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:370:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "stem" of class "Path":
- zipp/__init__.py:371:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:371:16: error: "_base" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:371:16: error: "None" has no attribute "stem" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:374:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "filename" of class "Path":
- zipp/__init__.py:375:9: error: No return value expected [return-value]
- zipp/__init__.py:375:29: error: "None" has no attribute "filename" [attr-defined]
- zipp/__init__.py: note: In member "read_text" of class "Path":
- zipp/__init__.py:377:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:378:34: error: Call to incomplete function "_extract_text_encoding" in typed context [no-untyped-call]
- zipp/__init__.py:378:34: note: Type is "def (encoding: Untyped =, *args: Untyped, **kwargs: Untyped) -> None"
- zipp/__init__.py:378:34: error: "_extract_text_encoding" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:378:34: error: "None" object is not iterable [misc]
- zipp/__init__.py:378:58: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:378:66: error: Expression type contains "Any" (has type "dict[str, Untyped]") [no-any-expr]
- zipp/__init__.py:379:14: error: Call to incomplete function "open" of "Path" in typed context [no-untyped-call]
- zipp/__init__.py:379:14: note: Type is "_NamedCallable & (mode: str =, *args: Untyped, pwd: Untyped =, **kwargs: Untyped) -> None"
- zipp/__init__.py:379:14: error: "open" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:379:14: error: "None" has no attribute "__enter__" [attr-defined]
- zipp/__init__.py:379:14: error: "None" has no attribute "__exit__" [attr-defined]
- zipp/__init__.py:379:29: error: Cannot determine type of "encoding" [has-type]
- zipp/__init__.py:379:40: error: Cannot determine type of "args'" [has-type]
- zipp/__init__.py:379:48: error: Cannot determine type of "kwargs'" [has-type]
- zipp/__init__.py:380:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py: note: In member "read_bytes" of class "Path":
- zipp/__init__.py:383:14: error: Call to incomplete function "open" of "Path" in typed context [no-untyped-call]
- zipp/__init__.py:383:14: note: Type is "_NamedCallable & (mode: str =, *args: Untyped, pwd: Untyped =, **kwargs: Untyped) -> None"
- zipp/__init__.py:383:14: error: "open" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:383:14: error: "None" has no attribute "__enter__" [attr-defined]
- zipp/__init__.py:383:14: error: "None" has no attribute "__exit__" [attr-defined]
- zipp/__init__.py:384:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py: note: In member "_is_child" of class "Path":
- zipp/__init__.py:386:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:387:9: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:387:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- zipp/__init__.py:387:34: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "_next" of class "Path":
- zipp/__init__.py:389:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:390:9: error: No return value expected [return-value]
- zipp/__init__.py:390:42: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "is_dir" of class "Path":
- zipp/__init__.py:393:9: error: No return value expected [return-value]
- zipp/__init__.py: note: In member "is_file" of class "Path":
- zipp/__init__.py:396:16: error: "exists" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:396:34: error: Right operand of "and" is never evaluated [unreachable]
- zipp/__init__.py:396:34: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-unreachable for more info
- zipp/__init__.py: note: In member "exists" of class "Path":
- zipp/__init__.py:399:9: error: No return value expected [return-value]
- zipp/__init__.py:399:27: error: "None" has no attribute "_name_set" [attr-defined]
- zipp/__init__.py: note: In member "iterdir" of class "Path":
- zipp/__init__.py:402:12: error: Condition is always true [redundant-expr]
- zipp/__init__.py:402:16: error: "is_dir" of "Path" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:404:9: error: Statement is unreachable [unreachable]
- zipp/__init__.py: note: In member "match" of class "Path":
- zipp/__init__.py:407:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:408:9: error: No return value expected [return-value]
- zipp/__init__.py:408:53: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "is_symlink" of class "Path":
- zipp/__init__.py:414:16: error: "None" has no attribute "getinfo" [attr-defined]
- zipp/__init__.py:416:9: error: No return value expected [return-value]
- zipp/__init__.py: note: In member "glob" of class "Path":
- zipp/__init__.py:418:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:419:16: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:420:30: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:424:39: error: Call to incomplete function "translate" of "Translator" in typed context [no-untyped-call]
- zipp/__init__.py:424:39: error: "translate" of "Translator" does not return a value (it only ever returns None) [func-returns-value]
- zipp/__init__.py:424:39: error: Unsupported operand types for + ("str" and "None") [operator]
- zipp/__init__.py:424:39: note: Type is "_NamedCallable & (pattern: Untyped) -> None"
- zipp/__init__.py:424:52: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:425:9: error: No return value expected [return-value]
- zipp/__init__.py:425:20: error: Expression type contains "Any" (has type "_NamedCallable & (at: Untyped) -> None") [no-any-expr]
- zipp/__init__.py:425:32: error: Expression type contains "Any" (has type "filter[Any (unannotated)]") [no-any-expr]
- zipp/__init__.py:425:39: error: Argument 1 to "filter" has incompatible type overloaded function; expected "(Any (from error)) -> first argument is Never" [arg-type]
- zipp/__init__.py:425:39: error: Argument 1 to "filter" has incompatible type overloaded function; expected "(Any (from error)) -> first argument is Any (unannotated)" [arg-type]
- zipp/__init__.py:425:48: error: "None" has no attribute "namelist" [attr-defined]
- zipp/__init__.py: note: In member "rglob" of class "Path":
- zipp/__init__.py:427:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:428:16: error: Call to incomplete function "glob" of "Path" in typed context [no-untyped-call]
- zipp/__init__.py:428:16: note: Type is "_NamedCallable & (pattern: Untyped) -> None"
- zipp/__init__.py:428:26: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py: note: In member "relative_to" of class "Path":
- zipp/__init__.py:430:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:431:9: error: No return value expected [return-value]
- zipp/__init__.py:431:49: error: Expression has type "Untyped" [no-any-expr]
- zipp/__init__.py:431:65: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py: note: In member "__str__" of class "Path":
- zipp/__init__.py:433:5: error: Return type "None" of "__str__" incompatible with return type "str" in supertype "object" [override]
- zipp/__init__.py:433:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- zipp/__init__.py:434:9: error: No return value expected [return-value]
- zipp/__init__.py:434:31: error: "None" has no attribute "filename" [attr-defined]
- zipp/__init__.py: note: In member "__repr__" of class "Path":
- zipp/__init__.py:436:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- zipp/__init__.py:436:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- zipp/__init__.py:437:9: error: No return value expected [return-value]
- zipp/__init__.py: note: In member "joinpath" of class "Path":
- zipp/__init__.py:439:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- zipp/__init__.py:440:41: error: Expression type contains "Any" (has type "tuple[Untyped, ...]") [no-any-expr]
- zipp/__init__.py:441:16: error: Call to incomplete function "_next" of "Path" in typed context [no-untyped-call]
- zipp/__init__.py:441:16: note: Type is "_NamedCallable & (at: Untyped) -> None"
- zipp/__init__.py:441:27: error: "None" has no attribute "resolve_dir" [attr-defined]
- zipp/__init__.py: note: In class "Path":
- zipp/__init__.py:443:19: error: Expression type contains "Any" (has type "def (self: Path, *other: Untyped) -> None") [no-any-expr]
- zipp/__init__.py:446:5: error: Property is missing a type annotation [no-untyped-def]
- zipp/__init__.py: note: In member "parent" of class "Path":
- zipp/__init__.py:448:13: error: Returning Any from function declared to return "None" [no-any-return]
- zipp/__init__.py:448:20: error: "None" has no attribute "parent" [attr-defined]
- zipp/__init__.py:452:16: error: Call to incomplete function "_next" of "Path" in typed context [no-untyped-call]
- zipp/__init__.py:452:16: note: Type is "_NamedCallable & (at: Untyped) -> None"
- zipp/compat/overlay.py:23:35: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- tests/_support.py: note: In function "import_or_skip":
- tests/_support.py:5:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/_support.py:7:9: error: No return value expected [return-value]
- tests/_support.py:7:40: error: Expression has type "Untyped" [no-any-expr]
- tests/_support.py:9:33: error: Expression has type "Untyped" [no-any-expr]
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 108, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 217, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 198, in build
+ result = _build(
+ File "/build.py", line 276, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3092, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3492, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3593, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2455, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 506, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1187, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2653, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1544, in accept
+ return visitor.visit_if_stmt(self)
+ File "/checker.py", line 5053, in visit_if_stmt
+ self.accept(b)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 823, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1168, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1172, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1245, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1481, in check_func_def
+ if not is_same_type(arg_type, ref_type):
+ File "/subtypes.py", line 272, in is_same_type
+ return all(is_same_type(x, y) for x, y in zip(a.args, b.args))
+ File "/subtypes.py", line 272, in <genexpr>
+ return all(is_same_type(x, y) for x, y in zip(a.args, b.args))
+ File "/subtypes.py", line 280, in is_same_type
+ return is_proper_subtype(
+ File "/subtypes.py", line 227, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 369, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ File "/types.py", line 571, in accept
+ return self.type.accept(visitor)
+ File "/types.py", line 418, in accept
+ return visitor.visit_type_alias_type(self)
+ File "/subtypes.py", line 1163, in visit_type_alias_type
+ assert False, f"This should be never called, got {left}"
+ AssertionError: This should be never called, got tuple[list[logging.LogRecord], list[str], fallback=unittest._log._LoggingWatcher]
- tests/test_path.py: note: In function "_make_link":
- tests/test_path.py:21:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In function "build_alpharep_fixture":
- tests/test_path.py:57:10: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:58:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:59:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:60:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:61:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:62:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:63:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:64:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:65:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:66:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:67:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:69:5: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:70:5: error: Returning Any from function declared to return "None" [no-any-return]
- tests/test_path.py:70:12: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: At top level:
- tests/test_path.py:74:5: error: Call to incomplete function "wrap" of "Invoked" in typed context [no-untyped-call]
- tests/test_path.py:74:5: note: Type is "_NamedCallable & (func: Untyped) -> None"
- tests/test_path.py:74:5: error: "wrap" of "Invoked" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:75:5: error: Call to incomplete function "wrap" of "Invoked" in typed context [no-untyped-call]
- tests/test_path.py:75:5: note: Type is "_NamedCallable & (func: Untyped) -> None"
- tests/test_path.py:75:5: error: "wrap" of "Invoked" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:75:18: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:75:26: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:78:1: error: Need type annotation for "pass_alpharep" (hint: "pass_alpharep: <type> | None = ...") [var-annotated]
- tests/test_path.py:78:17: error: Call to incomplete function "parameterize" in typed context [no-untyped-call]
- tests/test_path.py:78:17: note: Type is "def (names: Untyped, value_groups: Untyped) -> None"
- tests/test_path.py:78:17: error: "parameterize" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:78:30: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- tests/test_path.py: note: In member "setUp" of class "TestPath":
- tests/test_path.py:82:5: error: Method "setUp" is not using @override but is overriding a method in class "unittest.case.TestCase" [explicit-override]
- tests/test_path.py: note: In member "zipfile_ondisk" of class "TestPath":
- tests/test_path.py:86:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py:87:31: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:87:59: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:88:9: error: Usage of untyped name "buffer" in typed context [no-untyped-usage]
- tests/test_path.py:88:18: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:89:9: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:90:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- tests/test_path.py:90:25: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:91:14: error: Expression has type "Any (unannotated)" [no-any-expr]
- tests/test_path.py:92:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- tests/test_path.py:92:24: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:93:9: error: Returning Any from function declared to return "None" [no-any-return]
- tests/test_path.py:93:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:95:6: error: Untyped decorator makes function "test_iterdir_and_types" untyped [misc]
- tests/test_path.py:95:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_iterdir_and_types" of class "TestPath":
- tests/test_path.py:96:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:96:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_iterdir_and_types" of class "TestPath":
- tests/test_path.py:97:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:97:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:98:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:99:25: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:100:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:101:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:102:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:103:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:104:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:104:32: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:105:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:106:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:107:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:108:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:109:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:111:6: error: Untyped decorator makes function "test_is_file_missing" untyped [misc]
- tests/test_path.py:111:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_is_file_missing" of class "TestPath":
- tests/test_path.py:112:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:112:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_is_file_missing" of class "TestPath":
- tests/test_path.py:113:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:113:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:114:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:116:6: error: Untyped decorator makes function "test_iterdir_on_file" untyped [misc]
- tests/test_path.py:116:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_iterdir_on_file" of class "TestPath":
- tests/test_path.py:117:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:117:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_iterdir_on_file" of class "TestPath":
- tests/test_path.py:118:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:118:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:119:25: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:121:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:123:6: error: Untyped decorator makes function "test_subdir_is_dir" untyped [misc]
- tests/test_path.py:123:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_subdir_is_dir" of class "TestPath":
- tests/test_path.py:124:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:124:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_subdir_is_dir" of class "TestPath":
- tests/test_path.py:125:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:125:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:126:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:126:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:127:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:127:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:128:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:128:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:129:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:129:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:131:6: error: Untyped decorator makes function "test_open" untyped [misc]
- tests/test_path.py:131:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_open" of class "TestPath":
- tests/test_path.py:132:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:132:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_open" of class "TestPath":
- tests/test_path.py:133:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:133:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:134:25: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:135:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:136:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:137:26: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:138:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:139:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:140:26: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In member "test_open_encoding_utf16" of class "TestPath":
- tests/test_path.py:144:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:145:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:146:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:147:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:147:29: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:148:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:149:15: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:150:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:151:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:152:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:153:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:154:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:155:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In member "test_open_encoding_errors" of class "TestPath":
- tests/test_path.py:159:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:160:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:161:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:162:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:162:29: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:163:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:164:15: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:167:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:168:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:169:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:170:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:174:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:177:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:180:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:182:6: error: "None" not callable [misc]
- tests/test_path.py:182:6: error: Expression type contains "Any" (has type "[_FT: (...) -> Any] (_FT) -> _FT") [no-any-expr]
- tests/test_path.py:183:13: error: Expression type contains "Any" (has type "Any | int") [no-any-expr]
- tests/test_path.py:186:6: error: Untyped decorator makes function "test_encoding_warnings" untyped [misc]
- tests/test_path.py: note: In member "test_encoding_warnings" of class "TestPath":
- tests/test_path.py:187:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:187:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_encoding_warnings" of class "TestPath":
- tests/test_path.py:190:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:190:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:192:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:195:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In member "test_open_write" of class "TestPath":
- tests/test_path.py:203:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:203:27: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:204:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:205:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:206:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:207:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:209:6: error: Untyped decorator makes function "test_open_extant_directory" untyped [misc]
- tests/test_path.py:209:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_open_extant_directory" of class "TestPath":
- tests/test_path.py:210:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:210:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_open_extant_directory" of class "TestPath":
- tests/test_path.py:214:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:214:27: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:216:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:218:6: error: Untyped decorator makes function "test_open_binary_invalid_args" untyped [misc]
- tests/test_path.py:218:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_open_binary_invalid_args" of class "TestPath":
- tests/test_path.py:219:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:219:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_open_binary_invalid_args" of class "TestPath":
- tests/test_path.py:220:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:220:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:222:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:224:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:226:6: error: Untyped decorator makes function "test_open_missing_directory" untyped [misc]
- tests/test_path.py:226:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_open_missing_directory" of class "TestPath":
- tests/test_path.py:227:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:227:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_open_missing_directory" of class "TestPath":
- tests/test_path.py:231:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:231:27: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:233:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:235:6: error: Untyped decorator makes function "test_read" untyped [misc]
- tests/test_path.py:235:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_read" of class "TestPath":
- tests/test_path.py:236:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:236:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_read" of class "TestPath":
- tests/test_path.py:237:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:237:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:238:25: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:239:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:241:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:242:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:244:6: error: Untyped decorator makes function "test_joinpath" untyped [misc]
- tests/test_path.py:244:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_joinpath" of class "TestPath":
- tests/test_path.py:245:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:245:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_joinpath" of class "TestPath":
- tests/test_path.py:246:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:246:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:247:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:248:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:249:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:250:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:252:6: error: Untyped decorator makes function "test_joinpath_multiple" untyped [misc]
- tests/test_path.py:252:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_joinpath_multiple" of class "TestPath":
- tests/test_path.py:253:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:253:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_joinpath_multiple" of class "TestPath":
- tests/test_path.py:254:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:254:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:255:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:256:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:258:6: error: Untyped decorator makes function "test_traverse_truediv" untyped [misc]
- tests/test_path.py:258:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_traverse_truediv" of class "TestPath":
- tests/test_path.py:259:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:259:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_traverse_truediv" of class "TestPath":
- tests/test_path.py:260:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:260:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:261:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:262:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:263:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:264:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:266:6: error: Untyped decorator makes function "test_pathlike_construction" untyped [misc]
- tests/test_path.py:266:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_pathlike_construction" of class "TestPath":
- tests/test_path.py:267:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:267:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_pathlike_construction" of class "TestPath":
- tests/test_path.py:271:26: error: Call to incomplete function "zipfile_ondisk" of "TestPath" in typed context [no-untyped-call]
- tests/test_path.py:271:26: note: Type is "_NamedCallable & (alpharep: Untyped) -> None"
- tests/test_path.py:271:26: error: "zipfile_ondisk" of "TestPath" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:271:46: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:272:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:273:22: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:275:6: error: Untyped decorator makes function "test_traverse_pathlike" untyped [misc]
- tests/test_path.py:275:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_traverse_pathlike" of class "TestPath":
- tests/test_path.py:276:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:276:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_traverse_pathlike" of class "TestPath":
- tests/test_path.py:277:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:277:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:278:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:278:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:280:6: error: Untyped decorator makes function "test_parent" untyped [misc]
- tests/test_path.py:280:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_parent" of class "TestPath":
- tests/test_path.py:281:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:281:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_parent" of class "TestPath":
- tests/test_path.py:282:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:282:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:283:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:283:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:284:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:284:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:286:6: error: Untyped decorator makes function "test_dir_parent" untyped [misc]
- tests/test_path.py:286:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_dir_parent" of class "TestPath":
- tests/test_path.py:287:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:287:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_dir_parent" of class "TestPath":
- tests/test_path.py:288:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:288:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:289:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:289:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:290:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:290:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:292:6: error: Untyped decorator makes function "test_missing_dir_parent" untyped [misc]
- tests/test_path.py:292:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_missing_dir_parent" of class "TestPath":
- tests/test_path.py:293:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:293:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_missing_dir_parent" of class "TestPath":
- tests/test_path.py:294:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:294:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:295:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:295:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:297:6: error: Untyped decorator makes function "test_mutability" untyped [misc]
- tests/test_path.py:297:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_mutability" of class "TestPath":
- tests/test_path.py:298:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:298:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_mutability" of class "TestPath":
- tests/test_path.py:303:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:303:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:304:25: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:305:9: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:306:9: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:307:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:307:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:307:57: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:308:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:308:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:309:18: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:309:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:310:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In member "huge_zipfile" of class "TestPath":
- tests/test_path.py:317:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:319:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:320:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:321:9: error: Returning Any from function declared to return "None" [no-any-return]
- tests/test_path.py:321:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In member "test_joinpath_constant_time" of class "TestPath":
- tests/test_path.py:327:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:327:29: error: "huge_zipfile" of "TestPath" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:328:19: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:328:44: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:329:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:329:22: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:330:13: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py:332:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:334:6: error: Untyped decorator makes function "test_read_does_not_close" untyped [misc]
- tests/test_path.py:334:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_read_does_not_close" of class "TestPath":
- tests/test_path.py:335:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:335:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_read_does_not_close" of class "TestPath":
- tests/test_path.py:336:20: error: Call to incomplete function "zipfile_ondisk" of "TestPath" in typed context [no-untyped-call]
- tests/test_path.py:336:20: note: Type is "_NamedCallable & (alpharep: Untyped) -> None"
- tests/test_path.py:336:20: error: "zipfile_ondisk" of "TestPath" does not return a value (it only ever returns None) [func-returns-value]
- tests/test_path.py:336:40: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:337:14: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:339:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:339:30: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:341:6: error: Untyped decorator makes function "test_subclass" untyped [misc]
- tests/test_path.py:341:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_subclass" of class "TestPath":
- tests/test_path.py:342:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:342:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_subclass" of class "TestPath":
- tests/test_path.py:343:24: error: Name "zipfile.Path" is not defined [name-defined]
- tests/test_path.py: note: In function "test_subclass":
- tests/test_path.py:343:24: error: Class cannot subclass "Path" (has type "Any") [no-subclass-any]
- tests/test_path.py: note: In member "test_subclass" of class "TestPath":
- tests/test_path.py:346:25: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:349:6: error: Untyped decorator makes function "test_filename" untyped [misc]
- tests/test_path.py:349:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_filename" of class "TestPath":
- tests/test_path.py:350:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:350:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_filename" of class "TestPath":
- tests/test_path.py:351:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:351:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:352:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:354:6: error: Untyped decorator makes function "test_root_name" untyped [misc]
- tests/test_path.py:354:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_root_name" of class "TestPath":
- tests/test_path.py:355:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:355:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_root_name" of class "TestPath":
- tests/test_path.py:359:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:359:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:360:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:360:47: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:362:6: error: Untyped decorator makes function "test_suffix" untyped [misc]
- tests/test_path.py:362:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_suffix" of class "TestPath":
- tests/test_path.py:363:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:363:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_suffix" of class "TestPath":
- tests/test_path.py:369:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:369:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:370:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:370:41: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:372:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:373:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:375:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:376:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:378:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:379:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:381:6: error: Untyped decorator makes function "test_suffixes" untyped [misc]
- tests/test_path.py:381:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_suffixes" of class "TestPath":
- tests/test_path.py:382:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:382:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_suffixes" of class "TestPath":
- tests/test_path.py:388:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:388:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:389:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:389:45: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:391:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:392:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:394:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:395:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:397:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:398:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:400:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:401:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:403:6: error: Untyped decorator makes function "test_suffix_no_filename" untyped [misc]
- tests/test_path.py:403:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_suffix_no_filename" of class "TestPath":
- tests/test_path.py:404:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:404:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_suffix_no_filename" of class "TestPath":
- tests/test_path.py:405:9: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:405:9: error: Usage of untyped name "filename" in typed context [no-untyped-usage]
- tests/test_path.py:406:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:406:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:407:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:408:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:410:6: error: Untyped decorator makes function "test_stem" untyped [misc]
- tests/test_path.py:410:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_stem" of class "TestPath":
- tests/test_path.py:411:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:411:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_stem" of class "TestPath":
- tests/test_path.py:415:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:415:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:416:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:416:43: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:418:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:419:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:421:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:422:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:424:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:425:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:427:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:427:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:429:6: error: Untyped decorator makes function "test_root_parent" untyped [misc]
- tests/test_path.py:429:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_root_parent" of class "TestPath":
- tests/test_path.py:430:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:430:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_root_parent" of class "TestPath":
- tests/test_path.py:431:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:431:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:432:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:433:9: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:434:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:436:6: error: Untyped decorator makes function "test_root_unnamed" untyped [misc]
- tests/test_path.py:436:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_root_unnamed" of class "TestPath":
- tests/test_path.py:437:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:437:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_root_unnamed" of class "TestPath":
- tests/test_path.py:442:9: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:442:9: error: Usage of untyped name "filename" in typed context [no-untyped-usage]
- tests/test_path.py:443:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:443:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:445:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:447:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:450:15: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:451:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:452:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:454:6: error: Untyped decorator makes function "test_match_and_glob" untyped [misc]
- tests/test_path.py:454:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_match_and_glob" of class "TestPath":
- tests/test_path.py:455:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:455:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_match_and_glob" of class "TestPath":
- tests/test_path.py:456:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:456:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:457:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:459:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:459:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:459:44: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:459:45: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:459:58: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:460:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:460:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:460:46: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:461:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:461:26: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:462:13: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:462:26: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:465:6: error: Untyped decorator makes function "test_glob_recursive" untyped [misc]
- tests/test_path.py:465:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_glob_recursive" of class "TestPath":
- tests/test_path.py:466:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:466:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_glob_recursive" of class "TestPath":
- tests/test_path.py:467:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:467:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:468:17: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:469:19: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:469:20: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:469:52: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:471:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:471:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:471:47: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:471:52: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:473:6: error: Untyped decorator makes function "test_glob_dirs" untyped [misc]
- tests/test_path.py:473:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_glob_dirs" of class "TestPath":
- tests/test_path.py:474:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:474:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_glob_dirs" of class "TestPath":
- tests/test_path.py:475:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:475:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:476:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:476:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:476:40: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:476:41: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:476:54: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:477:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:477:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:477:41: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:477:42: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:477:55: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:479:6: error: Untyped decorator makes function "test_glob_subdir" untyped [misc]
- tests/test_path.py:479:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_glob_subdir" of class "TestPath":
- tests/test_path.py:480:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:480:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_glob_subdir" of class "TestPath":
- tests/test_path.py:481:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:481:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:482:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:482:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:482:42: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:482:43: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:482:56: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:483:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:483:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:483:44: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:483:45: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:483:58: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:485:6: error: Untyped decorator makes function "test_glob_subdirs" untyped [misc]
- tests/test_path.py:485:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_glob_subdirs" of class "TestPath":
- tests/test_path.py:486:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:486:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_glob_subdirs" of class "TestPath":
- tests/test_path.py:487:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:487:29: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py:489:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:489:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:490:16: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:490:21: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:490:47: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- tests/test_path.py:490:48: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:490:61: error: Expression has type "Untyped" [no-any-expr]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:492:6: error: Untyped decorator makes function "test_glob_does_not_overmatch_dot" untyped [misc]
- tests/test_path.py:492:6: error: "None" not callable [misc]
- tests/test_path.py: note: In member "test_glob_does_not_overmatch_dot" of class "TestPath":
- tests/test_path.py:493:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- tests/test_path.py: note: In class "TestPath":
- tests/test_path.py:493:5: error: Function is untyped after decorator transformation [no-any-decorated]
- tests/test_path.py: note: In member "test_glob_does_not_overmatch_dot" of class "TestPath":
- tests/test_path.py:494:16: error: Expression has type "Any" [no-any-expr]
- tests/test_path.py:494:29: error: Expression has type "Untyped" [no-any-expr]
... (truncated 376 lines) ...
pycryptodome (https://github.com/Legrandin/pycryptodome)
+ /tmp/mypy_primer/new_mypy/venv/lib/python3.10/site-packages/mypy/typeshed/stdlib/unittest/_log.pyi:19: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.7.0+dev.677601e2183467a65976dca0505510b7e8bf41f0
+ note: use --pdb to drop into pdb
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 108, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 217, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 198, in build
+ result = _build(
+ File "/build.py", line 276, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3092, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3492, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3593, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2455, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 506, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1187, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2653, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1544, in accept
+ return visitor.visit_if_stmt(self)
+ File "/checker.py", line 5053, in visit_if_stmt
+ self.accept(b)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 823, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1168, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1172, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1245, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1481, in check_func_def
+ if not is_same_type(arg_type, ref_type):
+ File "/subtypes.py", line 272, in is_same_type
+ return all(is_same_type(x, y) for x, y in zip(a.args, b.args))
+ File "/subtypes.py", line 272, in <genexpr>
+ return all(is_same_type(x, y) for x, y in zip(a.args, b.args))
+ File "/subtypes.py", line 280, in is_same_type
+ return is_proper_subtype(
+ File "/subtypes.py", line 227, in is_proper_subtype
+ return _is_subtype(left, right, subtype_context, proper_subtype=True)
+ File "/subtypes.py", line 369, in _is_subtype
+ return left.accept(SubtypeVisitor(orig_right, subtype_context, proper_subtype))
+ File "/types.py", line 571, in accept
+ return self.type.accept(visitor)
+ File "/types.py", line 418, in accept
+ return visitor.visit_type_alias_type(self)
+ File "/subtypes.py", line 1163, in visit_type_alias_type
+ assert False, f"This should be never called, got {left}"
+ AssertionError: This should be never called, got tuple[list[logging.LogRecord], list[str], fallback=unittest._log._LoggingWatcher]
- lib/Crypto/SelfTest/loader.py:42: error: "type: ignore" comment without error code (consider "type: ignore[import-not-found]" instead) [ignore-without-code]
- lib/Crypto/SelfTest/loader.py: note: In function "_load_tests":
- lib/Crypto/SelfTest/loader.py:48:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/loader.py:61:9: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/loader.py:62:13: error: Usage of untyped name "desc" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:62:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:63:13: error: Usage of untyped name "count" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:63:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:64:13: error: Need type annotation for "others" (hint: "others: list[<type>] = ...") [var-annotated]
- lib/Crypto/SelfTest/loader.py:64:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-var-annotated for more info
- lib/Crypto/SelfTest/loader.py:72:9: error: Usage of untyped name "line" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:72:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:73:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:74:16: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/loader.py:74:16: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-expr for more info
- lib/Crypto/SelfTest/loader.py:75:17: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/loader.py:75:17: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-unreachable for more info
- lib/Crypto/SelfTest/loader.py:77:9: error: Usage of untyped name "line" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:77:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:80:12: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:80:12: error: Expression type contains "Any" (has type "Any (unannotated) | bool") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:80:40: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:84:12: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:85:16: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/loader.py:86:17: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/loader.py:88:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:88:13: error: Call to incomplete function "append" of "list" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/loader.py:88:13: note: Type is "_NamedCallable & (Untyped) -> None"
- lib/Crypto/SelfTest/loader.py:88:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-no-untyped-call for more info
- lib/Crypto/SelfTest/loader.py:88:28: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:94:16: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/loader.py:95:17: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/loader.py:96:51: error: Expression type contains "Any" (has type "(Untyped, int)") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:96:52: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:98:50: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:100:13: error: Item "None" of "TestVector | None" has no attribute "others" [union-attr]
- lib/Crypto/SelfTest/loader.py:100:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-union-attr for more info
- lib/Crypto/SelfTest/loader.py:100:13: error: Expression type contains "Any" (has type "list[Any (unannotated)] | Any (from error)") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:100:35: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:100:35: note: Left operand is of type "list[Any (unannotated)] | Any (from error)"
- lib/Crypto/SelfTest/loader.py:100:35: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-operator for more info
- lib/Crypto/SelfTest/loader.py:100:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:105:13: error: Usage of untyped name "conversion" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:105:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:106:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:111:45: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:114:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/loader.py:114:12: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py: note: In function "load_test_vectors":
- lib/Crypto/SelfTest/loader.py:117:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/loader.py:159:13: error: Exception must be derived from BaseException [misc]
- lib/Crypto/SelfTest/loader.py:161:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:163:9: error: Usage of untyped name "description" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:163:40: error: Expression type contains "Any" (has type "(Untyped, Untyped)") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:163:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:163:54: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:165:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:165:36: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:166:26: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:166:39: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:166:52: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:166:63: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:166:75: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:167:19: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:168:23: error: Call to incomplete function "_load_tests" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/loader.py:168:23: note: Type is "def (dir_comps: Untyped, file_in: Untyped, description: Untyped, conversions: Untyped) -> None"
- lib/Crypto/SelfTest/loader.py:168:23: error: "_load_tests" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/loader.py:168:23: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-func-returns-value for more info
- lib/Crypto/SelfTest/loader.py:168:35: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:168:55: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:168:68: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:170:12: error: Exception type must be derived from BaseException (or be a tuple of exception classes) [misc]
- lib/Crypto/SelfTest/loader.py:171:23: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:171:65: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py: note: In function "load_test_vectors_wycheproof":
- lib/Crypto/SelfTest/loader.py:178:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/loader.py:179:43: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:179:57: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:179:70: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:181:5: error: Need type annotation for "result" (hint: "result: list[<type>] = ...") [var-annotated]
- lib/Crypto/SelfTest/loader.py:184:13: error: Exception must be derived from BaseException [misc]
- lib/Crypto/SelfTest/loader.py:186:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:188:20: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:188:36: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:189:26: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:189:39: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:189:52: error: Expression has type "Any (from unimported type)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:189:63: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:189:75: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:190:19: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:191:23: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:193:12: error: Exception type must be derived from BaseException (or be a tuple of exception classes) [misc]
- lib/Crypto/SelfTest/loader.py:194:23: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:194:65: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:197:9: error: No return value expected [return-value]
- lib/Crypto/SelfTest/loader.py:197:16: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:208:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:211:5: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:211:5: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:211:17: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:212:9: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:212:21: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:212:26: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:212:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:214:5: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:214:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:217:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:217:9: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:217:21: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:218:13: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:218:26: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:218:31: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:218:33: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:220:9: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:220:21: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:223:13: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated))") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:223:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:223:25: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:223:25: error: Expression type contains "Any" (has type "dict_items[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:224:29: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:224:32: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:225:13: error: Expression type contains "Any" (has type "(Any (unannotated), Any (unannotated))") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:225:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:225:25: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:225:25: error: Expression type contains "Any" (has type "dict_items[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:226:29: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:226:32: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:228:13: error: "TestVector" has no attribute "id" [attr-defined]
- lib/Crypto/SelfTest/loader.py:228:21: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:229:13: error: "TestVector" has no attribute "comment" [attr-defined]
- lib/Crypto/SelfTest/loader.py:229:26: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:231:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:233:53: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:235:95: error: Expression type contains "Any" (has type "(str, Any (from error), Untyped)") [no-any-expr]
- lib/Crypto/SelfTest/loader.py:235:102: error: "TestVector" has no attribute "id" [attr-defined]
- lib/Crypto/SelfTest/loader.py:235:109: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:236:13: error: "TestVector" has no attribute "filename" [attr-defined]
- lib/Crypto/SelfTest/loader.py:236:27: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:236:27: error: Usage of untyped name "file_name" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:238:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:238:13: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:238:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:239:29: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:239:32: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:239:34: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:241:13: error: "TestVector" has no attribute "valid" [attr-defined]
- lib/Crypto/SelfTest/loader.py:241:24: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:242:13: error: "TestVector" has no attribute "warning" [attr-defined]
- lib/Crypto/SelfTest/loader.py:242:26: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:243:13: error: "TestVector" has no attribute "flags" [attr-defined]
- lib/Crypto/SelfTest/loader.py:243:24: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:245:13: error: "TestVector" has no attribute "filename" [attr-defined]
- lib/Crypto/SelfTest/loader.py:245:27: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/loader.py:245:27: error: Usage of untyped name "file_name" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/loader.py:249:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_nist_ecc.py:13:11: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In class "EcLib":
- lib/Crypto/PublicKey/_nist_ecc.py:46:19: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:47:20: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:48:17: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:49:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:50:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:51:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:52:11: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:53:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:54:13: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:55:11: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:56:11: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In function "p192_curve":
- lib/Crypto/PublicKey/_nist_ecc.py:71:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:71:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:72:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:73:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:74:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:75:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:76:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:78:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:79:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:81:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:81:51: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:94:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In function "p224_curve":
- lib/Crypto/PublicKey/_nist_ecc.py:109:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:109:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:110:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:111:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:112:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:113:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:114:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:116:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:117:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:119:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:119:51: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:132:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In function "p256_curve":
- lib/Crypto/PublicKey/_nist_ecc.py:147:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:147:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:148:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:149:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:150:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:151:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:152:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:154:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:155:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:157:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:157:51: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:170:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In function "p384_curve":
- lib/Crypto/PublicKey/_nist_ecc.py:185:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:185:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:186:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:187:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:188:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:189:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:190:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:192:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:193:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:195:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:195:51: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:208:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_nist_ecc.py: note: In function "p521_curve":
- lib/Crypto/PublicKey/_nist_ecc.py:223:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:223:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:224:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:225:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:226:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:227:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:228:40: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:230:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:231:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:233:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:233:51: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_nist_ecc.py:246:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_montgomery.py: note: In function "curve25519_curve":
- lib/Crypto/PublicKey/_montgomery.py:13:23: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:27:21: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:28:17: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:29:22: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:30:17: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:31:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:32:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_montgomery.py:46:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_edwards.py: note: In function "ed25519_curve":
- lib/Crypto/PublicKey/_edwards.py:16:20: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:34:21: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:35:17: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:36:22: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:37:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:38:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:39:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:40:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:41:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:42:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:56:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_edwards.py: note: In function "ed448_curve":
- lib/Crypto/PublicKey/_edwards.py:65:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:87:21: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:88:17: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:89:22: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:90:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:91:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:92:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:93:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:94:15: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:95:18: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:98:14: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:98:43: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:99:8: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:100:67: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:102:28: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:102:49: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/PublicKey/_edwards.py:116:5: error: No return value expected [return-value]
- lib/Crypto/PublicKey/_point.pyi: note: In member "__eq__" of class "EccPoint":
- lib/Crypto/PublicKey/_point.pyi:13:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/PublicKey/_point.pyi: note: In member "__eq__" of class "EccXPoint":
- lib/Crypto/PublicKey/_point.pyi:39:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/PublicKey/RSA.pyi: note: In member "__eq__" of class "RsaKey":
- lib/Crypto/PublicKey/RSA.pyi:37:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/PublicKey/RSA.pyi: note: In member "__ne__" of class "RsaKey":
- lib/Crypto/PublicKey/RSA.pyi:38:5: error: Method "__ne__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/PublicKey/RSA.pyi: note: In member "__repr__" of class "RsaKey":
- lib/Crypto/PublicKey/RSA.pyi:40:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/PublicKey/RSA.pyi: note: In member "__str__" of class "RsaKey":
- lib/Crypto/PublicKey/RSA.pyi:41:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- lib/Crypto/Math/_IntegerCustom.pyi:5:1: error: Explicit "Any" is not allowed [no-any-explicit]
- lib/Crypto/Cipher/DES3.pyi: note: In function "new":
- lib/Crypto/Cipher/DES3.pyi:33:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Cipher/DES.pyi: note: In function "new":
- lib/Crypto/Cipher/DES.pyi:31:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Cipher/CAST.pyi: note: In function "new":
- lib/Crypto/Cipher/CAST.pyi:31:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Cipher/Blowfish.pyi: note: In function "new":
- lib/Crypto/Cipher/Blowfish.pyi:31:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Cipher/ARC2.pyi: note: In function "new":
- lib/Crypto/Cipher/ARC2.pyi:31:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Cipher/AES.pyi: note: In function "new":
- lib/Crypto/Cipher/AES.pyi:90:19: error: Missing type parameters for generic type "Dict" [type-arg]
- lib/Crypto/Signature/pss.pyi: note: In member "update" of class "Hash":
- lib/Crypto/Signature/pss.pyi:9:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/Signature/PKCS1_PSS.pyi: note: In member "update" of class "Hash":
- lib/Crypto/Signature/PKCS1_PSS.pyi:9:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/st_common.py: note: In function "list_test_cases":
- lib/Crypto/SelfTest/st_common.py:32:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/st_common.py:37:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/st_common.py:37:56: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/st_common.py: note: In function "strip_whitespace":
- lib/Crypto/SelfTest/st_common.py:39:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/st_common.py:41:19: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/st_common.py:42:9: error: No return value expected [return-value]
- lib/Crypto/SelfTest/st_common.py:44:9: error: No return value expected [return-value]
- lib/Crypto/SelfTest/st_common.py:44:27: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/st_common.py: note: In function "a2b_hex":
- lib/Crypto/SelfTest/st_common.py:46:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/st_common.py:48:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/st_common.py:48:29: error: Call to incomplete function "strip_whitespace" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/st_common.py:48:29: note: Type is "def (s: Untyped) -> None"
- lib/Crypto/SelfTest/st_common.py:48:29: error: "strip_whitespace" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/st_common.py:48:29: error: Argument 1 to "a2b_hex" has incompatible type "None"; expected "str | Buffer" [arg-type]
- lib/Crypto/SelfTest/st_common.py:48:46: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/st_common.py: note: In function "b2a_hex":
- lib/Crypto/SelfTest/st_common.py:50:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/st_common.py:53:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/st_common.py:53:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py: note: In member "runTest" of class "SimpleTest":
- lib/Crypto/SelfTest/Random/test_random.py:106:54: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:113:9: error: Call to incomplete function shuffle in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:113:9: note: Type is "_NamedCallable & (x: typing.Sequence[Untyped]) -> None"
- lib/Crypto/SelfTest/Random/test_random.py:114:9: error: Call to incomplete function shuffle in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:114:9: note: Type is "_NamedCallable & (x: typing.Sequence[Untyped]) -> None"
- lib/Crypto/SelfTest/Random/test_random.py:124:9: error: Call to incomplete function shuffle in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:124:9: note: Type is "_NamedCallable & (x: typing.Sequence[Untyped]) -> None"
- lib/Crypto/SelfTest/Random/test_random.py:125:29: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:127:17: error: Incompatible types in assignment (expression has type "bytearray", variable has type "list[int]") [assignment]
- lib/Crypto/SelfTest/Random/test_random.py:128:13: error: Call to incomplete function shuffle in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:128:13: note: Type is "_NamedCallable & (x: typing.Sequence[Untyped]) -> None"
- lib/Crypto/SelfTest/Random/test_random.py:129:30: error: Non-overlapping container check (element type: "bytes", container item type: "int") [comparison-overlap]
- lib/Crypto/SelfTest/Random/test_random.py:129:30: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-comparison-overlap for more info
- lib/Crypto/SelfTest/Random/test_random.py:130:42: error: Expression type contains "Any" (has type "_NamedCallable & (x: Sequence[Untyped]) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:131:38: error: Expression type contains "Any" (has type "_NamedCallable & (x: Sequence[Untyped]) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:132:38: error: Expression type contains "Any" (has type "_NamedCallable & (x: Sequence[Untyped]) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:133:38: error: Expression type contains "Any" (has type "_NamedCallable & (x: Sequence[Untyped]) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:139:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:139:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:139:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:140:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:140:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:140:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:141:29: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:141:32: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:143:29: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:143:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:144:29: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:144:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:145:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:145:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:145:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:145:27: error: Expression type contains "Any" (has type "list[Any (from omitted generics)]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:146:26: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:146:29: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:147:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:147:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:147:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:148:26: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:148:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:149:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:149:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:149:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:150:26: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:150:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:151:13: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:151:13: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:151:13: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:152:26: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:152:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:154:21: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:154:21: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:155:34: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:155:34: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:156:21: error: Call to incomplete function sample in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:156:21: note: Type is "_NamedCallable & (population: typing.Sequence[Untyped], k: int) -> list[Untyped]"
- lib/Crypto/SelfTest/Random/test_random.py:157:34: error: Expression type contains "Any" (has type "list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:157:34: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:158:38: error: Expression type contains "Any" (has type "_NamedCallable & (population: Sequence[Untyped], k: int) -> list[Untyped]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py: note: In function "get_tests":
- lib/Crypto/SelfTest/Random/test_random.py:160:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Random/test_random.py:160:22: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Random/test_random.py:161:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Random/test_random.py: note: At top level:
- lib/Crypto/SelfTest/Random/test_random.py:164:40: error: Call to incomplete function "get_tests" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Random/test_random.py:164:40: note: Type is "def (config: Untyped =) -> None"
- lib/Crypto/SelfTest/Random/test_random.py:164:40: error: "get_tests" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Random/test_random.py:164:40: error: Argument 1 to "TestSuite" has incompatible type "None"; expected "Iterable[TestCase | TestSuite]" [arg-type]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py: note: In member "runTest" of class "RFC1751Test_k2e":
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:45:17: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:46:53: error: Argument 1 to "key_to_english" has incompatible type "str"; expected "bytes" [arg-type]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py: note: In member "runTest" of class "RFC1751Test_e2k":
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:53:17: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py: note: In function "get_tests":
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:58:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:58:22: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Protocol/test_rfc1751.py:59:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Hash/common.py: note: In function "t2b":
- lib/Crypto/SelfTest/Hash/common.py:36:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:37:44: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:38:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "HashDigestSizeSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:43:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:45:9: error: Usage of untyped name "hashmod" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:45:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:46:9: error: Usage of untyped name "expected" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:46:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:47:9: error: Usage of untyped name "description" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:47:28: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:48:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:48:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "shortDescription" of class "HashDigestSizeSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:50:5: error: Method "shortDescription" is not using @override but is overriding a method in class "unittest.case.TestCase" [explicit-override]
- lib/Crypto/SelfTest/Hash/common.py:51:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Hash/common.py:51:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "HashDigestSizeSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:54:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:55:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:56:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:56:56: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:57:9: error: Usage of untyped name "h" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:57:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:57:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:58:33: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:59:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:59:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "HashSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:64:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:66:9: error: Usage of untyped name "hashmod" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:66:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:67:9: error: Usage of untyped name "expected" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:67:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:68:9: error: Usage of untyped name "input" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:68:22: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:69:9: error: Usage of untyped name "description" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:69:28: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:70:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:70:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "shortDescription" of class "HashSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:72:5: error: Method "shortDescription" is not using @override but is overriding a method in class "unittest.case.TestCase" [explicit-override]
- lib/Crypto/SelfTest/Hash/common.py:73:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Hash/common.py:73:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "HashSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:76:9: error: Usage of untyped name "h" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:76:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:76:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:77:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:77:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:79:33: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:80:9: error: Usage of untyped name "out2" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:80:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:82:9: error: Usage of untyped name "h'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:82:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:82:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:82:44: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:84:9: error: Usage of untyped name "out3" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:84:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:85:33: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:88:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:93:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:93:54: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:94:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:94:54: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:95:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:100:12: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:100:92: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:101:13: error: Usage of untyped name "h2" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:101:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:102:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:102:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:103:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:104:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "HashTestOID":
- lib/Crypto/SelfTest/Hash/common.py:108:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:110:9: error: Usage of untyped name "hashmod" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:110:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:111:9: error: Usage of untyped name "oid" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:111:20: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:112:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:112:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "HashTestOID":
- lib/Crypto/SelfTest/Hash/common.py:115:9: error: Usage of untyped name "h" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:115:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:115:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:116:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:116:33: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "ByteArrayTest":
- lib/Crypto/SelfTest/Hash/common.py:121:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:123:9: error: Usage of untyped name "module" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:123:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:124:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:124:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "ByteArrayTest":
- lib/Crypto/SelfTest/Hash/common.py:132:9: error: Usage of untyped name "h1" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:132:14: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:132:38: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:133:9: error: Usage of untyped name "h2" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:133:14: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:133:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:135:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:135:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:140:9: error: Usage of untyped name "h1'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:140:14: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:140:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:141:9: error: Usage of untyped name "h2'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:141:14: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:141:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:143:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:144:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:147:26: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:147:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "MemoryViewTest":
- lib/Crypto/SelfTest/Hash/common.py:152:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:154:9: error: Usage of untyped name "module" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:154:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:155:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:155:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In function "runTest":
- lib/Crypto/SelfTest/Hash/common.py:161:9: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:162:13: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Hash/common.py:162:31: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:164:9: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:165:13: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Hash/common.py:165:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "MemoryViewTest":
- lib/Crypto/SelfTest/Hash/common.py:167:9: error: Expression type contains "Any" (has type "def (data: Untyped) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:167:23: error: Expression type contains "Any" (has type "def (data: Untyped) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:167:23: error: Expression type contains "Any" (has type "(def (data: Untyped) -> None, def (data: Untyped) -> None)") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:167:34: error: Expression type contains "Any" (has type "def (data: Untyped) -> None") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:170:18: error: Call to incomplete function get_mv in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Hash/common.py:170:18: note: Type is "def (data: Untyped) -> None"
- lib/Crypto/SelfTest/Hash/common.py:170:18: error: Function does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Hash/common.py:172:13: error: Usage of untyped name "h1" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:172:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:172:42: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:173:13: error: Usage of untyped name "h2" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:173:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:173:40: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:174:20: error: "None" has no attribute "readonly" [attr-defined]
- lib/Crypto/SelfTest/Hash/common.py:175:17: error: Unsupported target for indexed assignment ("None") [index]
- lib/Crypto/SelfTest/Hash/common.py:175:17: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-index for more info
- lib/Crypto/SelfTest/Hash/common.py:176:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:176:43: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:179:18: error: Call to incomplete function get_mv in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Hash/common.py:179:18: note: Type is "def (data: Untyped) -> None"
- lib/Crypto/SelfTest/Hash/common.py:179:18: error: Function does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Hash/common.py:181:13: error: Usage of untyped name "h1'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:181:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:181:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:182:13: error: Usage of untyped name "h2'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:182:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:182:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:183:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:184:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:185:20: error: "None" has no attribute "readonly" [attr-defined]
- lib/Crypto/SelfTest/Hash/common.py:186:17: error: Unsupported target for indexed assignment ("None") [index]
- lib/Crypto/SelfTest/Hash/common.py:187:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:187:43: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "__init__" of class "MACSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:192:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:194:9: error: Usage of untyped name "module" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:194:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:195:23: error: Call to incomplete function "t2b" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Hash/common.py:195:23: note: Type is "def (hex_string: Untyped) -> None"
- lib/Crypto/SelfTest/Hash/common.py:195:23: error: "t2b" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Hash/common.py:195:27: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:196:21: error: Call to incomplete function "t2b" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Hash/common.py:196:21: note: Type is "def (hex_string: Untyped) -> None"
- lib/Crypto/SelfTest/Hash/common.py:196:21: error: "t2b" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Hash/common.py:196:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:197:20: error: Call to incomplete function "t2b" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Hash/common.py:197:20: note: Type is "def (hex_string: Untyped) -> None"
- lib/Crypto/SelfTest/Hash/common.py:197:20: error: "t2b" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Hash/common.py:197:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:198:9: error: Usage of untyped name "params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:198:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:199:9: error: Usage of untyped name "description" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:199:28: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "shortDescription" of class "MACSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:201:5: error: Method "shortDescription" is not using @override but is overriding a method in class "unittest.case.TestCase" [explicit-override]
- lib/Crypto/SelfTest/Hash/common.py:202:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Hash/common.py:202:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In member "runTest" of class "MACSelfTest":
- lib/Crypto/SelfTest/Hash/common.py:206:30: error: Argument 1 to "hexlify" has incompatible type "None"; expected "Buffer" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:209:9: error: Usage of untyped name "h" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:209:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:209:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:210:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:211:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:212:34: error: Argument 1 to "hexlify" has incompatible type "None"; expected "Buffer" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:212:64: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:215:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:216:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:219:30: error: Argument 1 to "strxor_c" has incompatible type "None"; expected "bytes" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:220:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:221:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:224:9: error: Usage of untyped name "h'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:224:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:224:52: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:225:39: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:226:34: error: Argument 1 to "hexlify" has incompatible type "None"; expected "Buffer" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:226:64: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:230:13: error: Usage of untyped name "h'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:230:17: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:230:56: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:231:13: error: Usage of untyped name "h2" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:231:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:232:13: error: Usage of untyped name "h3" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:232:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:235:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:236:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:239:13: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:240:30: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:240:42: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:245:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:246:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:249:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:249:21: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:250:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:250:21: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py: note: In function "make_hash_tests":
- lib/Crypto/SelfTest/Hash/common.py:253:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:254:34: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:256:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:257:9: error: Usage of untyped name "row" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Hash/common.py:257:15: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:258:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:259:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:262:27: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:263:31: error: Expression type contains "Any" (has type "(Untyped, int, str)") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:263:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:264:35: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:264:66: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:266:36: error: Expression type contains "Any" (has type "(Untyped, int)") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:266:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:266:54: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:267:18: error: Argument 1 to "append" of "list" has incompatible type "HashDigestSizeSelfTest"; expected "HashSelfTest" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:267:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:267:55: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:267:68: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:269:8: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:270:22: error: Argument 1 to "append" of "list" has incompatible type "HashTestOID"; expected "HashSelfTest" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:270:34: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:270:42: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:270:47: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:272:18: error: Argument 1 to "append" of "list" has incompatible type "ByteArrayTest"; expected "HashSelfTest" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:272:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:272:40: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:274:18: error: Argument 1 to "append" of "list" has incompatible type "MemoryViewTest"; expected "HashSelfTest" [arg-type]
- lib/Crypto/SelfTest/Hash/common.py:274:33: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:274:41: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:276:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Hash/common.py: note: In function "make_mac_tests":
- lib/Crypto/SelfTest/Hash/common.py:279:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Hash/common.py:281:5: error: Expression type contains "Any" (has type "(int, Any (unannotated))") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:281:5: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:281:19: error: Expression type contains "Any" (has type "enumerate[Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:281:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:282:16: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:283:57: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:283:57: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:283:62: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:283:69: error: Expression type contains "Any" (has type "list[Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:283:71: error: Expression type contains "Any" (has type "dict[Any (unannotated), Any (unannotated)]") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:285:57: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:286:31: error: Expression type contains "Any" (has type "(Untyped, int, Any (unannotated))") [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:286:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:286:50: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:287:34: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:287:48: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:287:57: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:287:63: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:287:68: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Hash/common.py:288:5: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Cipher/common.py: note: In function "_extract":
- lib/Crypto/SelfTest/Cipher/common.py:34:1: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Cipher/common.py:37:9: error: Usage of untyped name "retval" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Cipher/common.py:37:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:37:20: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:39:12: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:41:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Cipher/common.py:41:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:42:5: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:42:9: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:42:11: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:43:5: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Cipher/common.py:43:12: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py: note: In member "__init__" of class "CipherSelfTest":
- lib/Crypto/SelfTest/Cipher/common.py:48:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Cipher/common.py:50:9: error: Usage of untyped name "module" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Cipher/common.py:50:23: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:53:9: error: Usage of untyped name "params'" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Cipher/common.py:53:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:54:28: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:54:28: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:54:28: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:54:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:55:22: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:55:22: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:55:22: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:55:22: error: Argument 1 to "b" has incompatible type "None"; expected "str" [arg-type]
- lib/Crypto/SelfTest/Cipher/common.py:55:31: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:56:28: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:56:28: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:56:28: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:56:28: error: Argument 1 to "b" has incompatible type "None"; expected "str" [arg-type]
- lib/Crypto/SelfTest/Cipher/common.py:56:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:57:29: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:57:29: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:57:29: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:57:29: error: Argument 1 to "b" has incompatible type "None"; expected "str" [arg-type]
- lib/Crypto/SelfTest/Cipher/common.py:57:38: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:58:28: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:58:28: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:58:28: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:58:37: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:59:27: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:59:27: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:59:27: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:59:36: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:60:20: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:60:20: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:60:20: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:60:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:61:12: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/Cipher/common.py:62:13: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/Cipher/common.py:64:16: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:64:16: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:64:16: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:64:25: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:67:12: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/Cipher/common.py:69:13: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/Cipher/common.py:79:13: error: Cannot determine type of "mode" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:79:13: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-has-type for more info
- lib/Crypto/SelfTest/Cipher/common.py:80:13: error: Cannot determine type of "iv" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:80:23: error: Call to incomplete function "_extract" in typed context [no-untyped-call]
- lib/Crypto/SelfTest/Cipher/common.py:80:23: note: Type is "def (d: Untyped, k: Untyped, default: Untyped =) -> None"
- lib/Crypto/SelfTest/Cipher/common.py:80:23: error: "_extract" does not return a value (it only ever returns None) [func-returns-value]
- lib/Crypto/SelfTest/Cipher/common.py:80:32: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:81:16: error: Cannot determine type of "iv" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:81:16: error: Condition is always false [redundant-expr]
- lib/Crypto/SelfTest/Cipher/common.py:82:17: error: Statement is unreachable [unreachable]
- lib/Crypto/SelfTest/Cipher/common.py:84:9: error: Usage of untyped name "extra_params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Cipher/common.py:84:29: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py: note: In member "shortDescription" of class "CipherSelfTest":
- lib/Crypto/SelfTest/Cipher/common.py:86:5: error: Method "shortDescription" is not using @override but is overriding a method in class "unittest.case.TestCase" [explicit-override]
- lib/Crypto/SelfTest/Cipher/common.py:87:9: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Cipher/common.py:87:16: error: Expression type contains "Any" (has type "Any (unannotated) | None") [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py: note: In member "_new" of class "CipherSelfTest":
- lib/Crypto/SelfTest/Cipher/common.py:90:9: error: Usage of untyped name "params" in typed context [no-untyped-usage]
- lib/Crypto/SelfTest/Cipher/common.py:90:18: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:94:12: error: Cannot determine type of "mode" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:95:25: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:95:27: error: Cannot determine type of "mode" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:96:12: error: Cannot determine type of "iv" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:97:13: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:97:26: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:97:36: error: Cannot determine type of "iv" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:99:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Cipher/common.py:99:16: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:99:38: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:99:51: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py: note: In member "isMode" of class "CipherSelfTest":
- lib/Crypto/SelfTest/Cipher/common.py:101:5: error: Function is missing a type annotation for one or more arguments [no-untyped-def]
- lib/Crypto/SelfTest/Cipher/common.py:102:24: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:102:37: error: Expression has type "Any (unannotated)" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:102:45: error: Expression has type "Untyped" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:103:13: error: No return value expected [return-value]
- lib/Crypto/SelfTest/Cipher/common.py:104:9: error: Returning Any from function declared to return "None" [no-any-return]
- lib/Crypto/SelfTest/Cipher/common.py:104:16: error: Cannot determine type of "mode" [has-type]
- lib/Crypto/SelfTest/Cipher/common.py:104:16: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:104:29: error: Expression has type "Any" [no-any-expr]
- lib/Crypto/SelfTest/Cipher/common.py:104:37: error: Expression has type "Untyped" [no-any-expr]
... (truncated 16732 lines) ...
operator (https://github.com/canonical/operator)
+ ops/pebble.py:1761: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
+ https://kotlinisland.github.io/basedmypy/common_issues.html#using-a-development-mypy-build
+ Please report a bug at https://github.com/KotlinIsland/basedmypy/issues
+ version: 2.7.0+dev.677601e2183467a65976dca0505510b7e8bf41f0
+ ops/pebble.py:1761: : note: use --pdb to drop into pdb
- ops/pebble.py: note: At top level:
- ops/pebble.py:376: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/pebble.py: note: At top level:
- ops/pebble.py:428: error: "type: ignore" comment without error code (consider "type: ignore[assignment]" instead) [ignore-without-code]
- ops/pebble.py:492:9: error: No return value expected [return-value]
- ops/pebble.py: note: At top level:
- ops/pebble.py:609: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/pebble.py: note: At top level:
- ops/pebble.py:704: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, no-any-expr]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "from_dict" of class "Task":
- ops/pebble.py: note: At top level:
- ops/pebble.py:773: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, no-any-expr]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "from_dict" of class "Change":
- ops/pebble.py: note: At top level:
- ops/pebble.py:805: error: "type: ignore" comment without error code (consider "type: ignore[no-any-expr]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "__init__" of class "Plan":
- ops/pebble.py: note: At top level:
- ops/pebble.py:892: error: "type: ignore" comment without error code (consider "type: ignore[no-any-expr]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "__init__" of class "Layer":
- ops/pebble.py: note: At top level:
- ops/pebble.py:1153: error: "type: ignore" comment without error code (consider "type: ignore[attr-defined]" instead) [ignore-without-code]
- ops/pebble.py: note: At top level:
- ops/pebble.py:1171: error: "type: ignore" comment without error code (consider "type: ignore[attr-defined]" instead) [ignore-without-code]
- ops/pebble.py:1770:21: error: Redundant cast to "str" [redundant-cast]
- ops/pebble.py:1770:21: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-redundant-cast for more info
- ops/pebble.py:1770:21: error: Conversion of type "str" to type "bytes" may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to "object" first. [bad-cast]
- ops/pebble.py:1770:21: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-bad-cast for more info
- ops/pebble.py:1771:21: error: Redundant cast to "str" [redundant-cast]
- ops/pebble.py:1771:21: error: Conversion of type "str" to type "bytes" may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to "object" first. [bad-cast]
- ops/pebble.py: note: In function "_has_fileno":
- ops/pebble.py:1794:1: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:1797:9: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In function "_reader_to_websocket":
- ops/pebble.py:1816:22: error: Expression type contains "Any" (has type "(list[Any], list[Any], list[Any])") [no-any-expr]
- ops/pebble.py:1816:36: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py:1816:61: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py:1816:65: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py:1817:33: error: Expression type contains "Any" (has type "(list[Any], list[Any], list[Any])") [no-any-expr]
- ops/pebble.py:1817:33: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py: note: In function "_websocket_to_writer":
- ops/pebble.py:1837:27: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1842:23: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1843:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1845:58: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1851:21: error: Redundant cast to "bytes" [redundant-cast]
- ops/pebble.py: note: In member "writable" of class "_WebsocketWriter":
- ops/pebble.py:1861:5: error: Return type "None" of "writable" incompatible with return type "bool" in supertype "IOBase" [override]
- ops/pebble.py:1861:5: error: Method "writable" is not using @override but is overriding a method in class "io.IOBase" [explicit-override]
- ops/pebble.py:1863:9: error: No return value expected [return-value]
- ops/pebble.py: note: In member "write" of class "_WebsocketWriter":
- ops/pebble.py:1865:5: error: Method "write" is not using @override but is overriding a method in class "io.BufferedIOBase" [explicit-override]
- ops/pebble.py:1865:21: error: Argument 1 of "write" is incompatible with supertype "BufferedIOBase"; supertype defines the argument type as "Buffer" [override]
- ops/pebble.py:1865:21: note: This violates the Liskov substitution principle
- ops/pebble.py:1865:21: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/pebble.py: note: In member "close" of class "_WebsocketWriter":
- ops/pebble.py:1872:5: error: Method "close" is not using @override but is overriding a method in class "io.IOBase" [explicit-override]
- ops/pebble.py: note: In member "readable" of class "_WebsocketReader":
- ops/pebble.py:1885:5: error: Method "readable" is not using @override but is overriding a method in class "io.IOBase" [explicit-override]
- ops/pebble.py: note: In member "read" of class "_WebsocketReader":
- ops/pebble.py:1889:5: error: Return type "str | bytes" of "read" incompatible with return type "bytes" in supertype "BufferedIOBase" [override]
- ops/pebble.py:1889:5: error: Method "read" is not using @override but is overriding a method in class "io.BufferedIOBase" [explicit-override]
- ops/pebble.py:1889:20: error: Argument 1 of "read" is incompatible with supertype "BufferedIOBase"; supertype defines the argument type as "int | None" [override]
- ops/pebble.py:1889:20: note: This violates the Liskov substitution principle
- ops/pebble.py:1889:20: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/pebble.py:1900:31: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1905:27: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1906:20: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:1908:62: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "read1" of class "_WebsocketReader":
- ops/pebble.py:1922:5: error: Return type "str | bytes" of "read1" incompatible with return type "bytes" in supertype "BufferedIOBase" [override]
- ops/pebble.py:1922:5: error: Method "read1" is not using @override but is overriding a method in class "io.BufferedIOBase" [explicit-override]
- ops/pebble.py: note: In member "__init__" of class "Client":
- ops/pebble.py:1957:12: error: Condition is always false [redundant-expr]
- ops/pebble.py: note: In member "_request" of class "Client":
- ops/pebble.py:1977:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:1993:12: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- ops/pebble.py:1994:31: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:1997:52: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- ops/pebble.py:1999:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2000:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py: note: In member "_ensure_content_type" of class "Client":
- ops/pebble.py:2012:18: error: Need type annotation for "params" [var-annotated]
- ops/pebble.py:2016:9: error: No return value expected [return-value]
- ops/pebble.py:2018:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2028:12: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- ops/pebble.py:2029:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2031:12: error: Expression type contains "Any" (has type "dict[str, Any] | None") [no-any-expr]
- ops/pebble.py:2033:67: error: Expression type contains "Any" (has type "bytes | Generator[bytes, Any, Any] | None") [no-any-expr]
- ops/pebble.py:2033:81: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2041:17: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2042:32: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2042:32: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2045:17: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2047:28: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2049:16: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- ops/pebble.py:2049:16: error: Expression type contains "Any" (has type "tuple[Any, ...] | bool") [no-any-expr]
- ops/pebble.py:2049:38: error: Expression type contains "Any" (has type "tuple[Any, ...]") [no-any-expr]
- ops/pebble.py:2049:38: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2056:9: error: Returning Any from function declared to return "HTTPResponse" [no-any-return]
- ops/pebble.py: note: In member "get_system_info" of class "Client":
- ops/pebble.py:2060:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2061:37: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2061:37: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_warnings" of class "Client":
- ops/pebble.py:2066:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2067:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2067:35: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2067:47: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2067:47: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "ack_warnings" of class "Client":
- ops/pebble.py:2072:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2073:9: error: Returning Any from function declared to return "int" [no-any-return]
- ops/pebble.py:2073:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2073:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_changes" of class "Client":
- ops/pebble.py:2084:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2085:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2085:34: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2085:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2085:46: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_change" of class "Client":
- ops/pebble.py:2089:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2090:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2090:33: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "abort_change" of class "Client":
- ops/pebble.py:2095:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2096:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2096:33: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "_services_action" of class "Client":
- ops/pebble.py:2219:16: error: Condition is always false [redundant-expr]
- ops/pebble.py:2223:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2224:30: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2224:30: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "wait_change" of class "Client":
- ops/pebble.py:2256:20: error: "_wait_change_using_wait" of "Client" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:2256:20: error: Incompatible return value type (got "None", expected "Change") [return-value]
- ops/pebble.py:2259:20: error: "_wait_change_using_polling" of "Client" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:2259:20: error: Incompatible return value type (got "None", expected "Change") [return-value]
- ops/pebble.py: note: In member "_wait_change_using_wait" of class "Client":
- ops/pebble.py:2277:17: error: No return value expected [return-value]
- ops/pebble.py: note: In member "_wait_change" of class "Client":
- ops/pebble.py:2288:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2290:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2293:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2293:74: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2301:21: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- ops/pebble.py:2305:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2305:33: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "_wait_change_using_polling" of class "Client":
- ops/pebble.py:2316:17: error: No return value expected [return-value]
- ops/pebble.py: note: In member "add_layer" of class "Client":
- ops/pebble.py:2330:12: error: Condition is always false [redundant-expr]
- ops/pebble.py:2333:23: error: Expression type contains "Any" (has type "str | LayerDict | Layer") [no-any-expr]
- ops/pebble.py:2335:25: error: Expression type contains "Any" (has type "LayerDict | Layer") [no-any-expr]
- ops/pebble.py:2336:32: error: Expression type contains "Any" (has type "LayerDict") [no-any-expr]
- ops/pebble.py:2337:14: error: Condition is always true [redundant-expr]
- ops/pebble.py: note: In member "get_plan" of class "Client":
- ops/pebble.py:2355:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2355:49: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2356:21: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2356:21: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_services" of class "Client":
- ops/pebble.py:2367:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2368:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2368:39: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2368:57: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2368:57: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In function "pull":
- ops/pebble.py:2400:19: error: "_ensure_content_type" of "Client" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:2401:20: error: "None" has no attribute "get" [attr-defined]
- ops/pebble.py:2418:21: error: "filenames" of "_FilesParser" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:2419:12: error: Condition is always true [redundant-expr]
- ops/pebble.py:2421:9: error: Statement is unreachable [unreachable]
- ops/pebble.py:2424:9: error: Statement is unreachable [unreachable]
- ops/pebble.py: note: In member "push" of class "Client":
- ops/pebble.py:2488:30: error: "_encode_multipart" of "Client" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:2488:30: error: "None" object is not iterable [misc]
- ops/pebble.py:2492:29: error: Cannot determine type of "content_type" [has-type]
- ops/pebble.py:2492:29: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-has-type for more info
- ops/pebble.py:2494:74: error: Cannot determine type of "data" [has-type]
- ops/pebble.py:2496:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2521:5: error: Explicit "Any" is not allowed [no-any-explicit]
+ Traceback (most recent call last):
+ File "", line 8, in <module>
+ sys.exit(console_entry())
+ File "/__main__.py", line 15, in console_entry
+ main()
+ File "/main.py", line 108, in main
+ res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
+ File "/main.py", line 217, in run_build
+ res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
+ File "/build.py", line 198, in build
+ result = _build(
+ File "/build.py", line 276, in _build
+ graph = dispatch(sources, manager, stdout)
+ File "/build.py", line 3092, in dispatch
+ process_graph(graph, manager)
+ File "/build.py", line 3492, in process_graph
+ process_stale_scc(graph, scc, manager)
+ File "/build.py", line 3593, in process_stale_scc
+ graph[id].type_check_first_pass()
+ File "/build.py", line 2455, in type_check_first_pass
+ self.type_checker().check_first_pass()
+ File "/checker.py", line 506, in check_first_pass
+ self.accept(d)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1187, in accept
+ return visitor.visit_class_def(self)
+ File "/checker.py", line 2653, in visit_class_def
+ self.accept(defn.defs)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 823, in accept
+ return visitor.visit_func_def(self)
+ File "/checker.py", line 1168, in visit_func_def
+ self._visit_func_def(defn)
+ File "/checker.py", line 1172, in _visit_func_def
+ self.check_func_item(defn, name=defn.name)
+ File "/checker.py", line 1245, in check_func_item
+ self.check_func_def(defn, typ, name, allow_empty)
+ File "/checker.py", line 1581, in check_func_def
+ self.accept(item.body)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1268, in accept
+ return visitor.visit_block(self)
+ File "/checker.py", line 3119, in visit_block
+ self.accept(s)
+ File "/checker.py", line 614, in accept
+ stmt.accept(self)
+ File "/nodes.py", line 1355, in accept
+ return visitor.visit_assignment_stmt(self)
+ File "/checker.py", line 3182, in visit_assignment_stmt
+ self.check_assignment(
+ File "/checker.py", line 3514, in check_assignment
+ rvalue_type = self.expr_checker.accept(rvalue, type_context=type_context)
+ File "/checkexpr.py", line 6078, in accept
+ typ = node.accept(self)
+ File "/nodes.py", line 1983, in accept
+ return visitor.visit_call_expr(self)
+ File "/checkexpr.py", line 491, in visit_call_expr
+ return self.visit_call_expr_inner(e, allow_none_return=allow_none_return)
+ File "/checkexpr.py", line 701, in visit_call_expr_inner
+ ret_type = self.check_call_expr_with_callee_type(
+ File "/checkexpr.py", line 1558, in check_call_expr_with_callee_type
+ ret_type, callee_type = self.check_call(
+ File "/checkexpr.py", line 1655, in check_call
+ return self.check_callable_call(
+ File "/checkexpr.py", line 1874, in check_callable_call
+ arg_types = self.infer_arg_types_in_context(callee, args, arg_kinds, formal_to_actual)
+ File "/checkexpr.py", line 2048, in infer_arg_types_in_context
+ res[ai] = self.accept(args[ai], arg_type)
+ File "/checkexpr.py", line 6078, in accept
+ typ = node.accept(self)
+ File "/nodes.py", line 1905, in accept
+ return visitor.visit_member_expr(self)
+ File "/checkexpr.py", line 3427, in visit_member_expr
+ return self.narrow_type_from_binder(e, result)
+ File "/checkexpr.py", line 6406, in narrow_type_from_binder
+ return narrow_declared_type(known_type, restriction)
+ File "/meet.py", line 149, in narrow_declared_type
+ [
+ File "/meet.py", line 158, in <listcomp>
+ is_overlapping_types(x, narrowed, ignore_promotions=True)
+ File "/meet.py", line 589, in is_overlapping_types
+ if all(
+ File "/meet.py", line 590, in <genexpr>
+ _is_overlapping_types(left_arg, right_arg)
+ File "/meet.py", line 324, in _is_overlapping_types
+ return is_overlapping_types(
+ File "/meet.py", line 619, in is_overlapping_types
+ assert type(left) != type(right), f"{type(left)} vs {type(right)}"
+ AssertionError: <class 'mypy.types.TypeVarConstraintWrapper'> vs <class 'mypy.types.TypeVarConstraintWrapper'>
- ops/pebble.py: note: At top level:
- ops/pebble.py:2531: error: "type: ignore" comment without error code (consider "type: ignore[no-redef]" instead) [ignore-without-code]
- ops/pebble.py: note: In function "_encode_multipart":
- ops/pebble.py:2544:28: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py: note: In member "_encode_multipart" of class "Client":
- ops/pebble.py:2570:9: error: No return value expected [return-value]
- ops/pebble.py: note: In member "list_files" of class "Client":
- ops/pebble.py:2600:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2601:39: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2601:39: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2601:57: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py:2602:16: error: Expression type contains "Any" (has type "Any | _FileInfoDict") [no-any-expr]
- ops/pebble.py:2602:36: error: Expression type contains "Any" (has type "Any | _FileInfoDict") [no-any-expr]
- ops/pebble.py:2602:48: error: Expression type contains "Any" (has type "Any | list[_FileInfoDict]") [no-any-expr]
- ops/pebble.py: note: In member "make_dir" of class "Client":
- ops/pebble.py:2641:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py: note: In member "remove_path" of class "Client":
- ops/pebble.py:2658:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2660:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2661:16: error: Expression type contains "Any" (has type "dict[str, str | list[dict[str, Any]]]") [no-any-expr]
- ops/pebble.py:2663:13: error: Expression type contains "Any" (has type "(str, list[dict[str, Any]])") [no-any-expr]
- ops/pebble.py:2663:22: error: Expression type contains "Any" (has type "list[dict[str, Any]]") [no-any-expr]
- ops/pebble.py:2663:23: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2665:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2665:57: error: Expression type contains "Any" (has type "dict[str, str | list[dict[str, Any]]]") [no-any-expr]
- ops/pebble.py: note: In function "exec":
- ops/pebble.py:2710:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:2852:12: error: Left operand of "or" is always false [redundant-expr]
- ops/pebble.py:2884:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2885:21: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2885:21: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2886:19: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:2886:19: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2890:50: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2891:48: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2893:53: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2894:9: error: Expression has type "Any (from unimported type)" [no-any-expr]
- ops/pebble.py:2894:16: error: Expression has type "Any (from unimported type)" [no-any-expr]
- ops/pebble.py:2897:48: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2899:60: error: Expression has type "Any (from unimported type)" [no-any-expr]
- ops/pebble.py:2900:35: error: Expression has type "Any (from unimported type)" [no-any-expr]
- ops/pebble.py:2900:91: error: Expression has type "Any (from unimported type)" [no-any-expr]
- ops/pebble.py: note: At top level:
- ops/pebble.py:2925: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, assignment]" instead) [ignore-without-code]
- ops/pebble.py:2934: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, assignment]" instead) [ignore-without-code]
- ops/pebble.py:2946: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, assignment]" instead) [ignore-without-code]
- ops/pebble.py: note: In function "exec":
- ops/pebble.py:2951:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py: note: At top level:
- ops/pebble.py:2952: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/pebble.py:2953: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/pebble.py:2954: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/pebble.py: note: In function "exec":
- ops/pebble.py:2962:32: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:2967:16: error: Expression type contains "Any" (has type "ExecProcess[Any]") [no-any-expr]
- ops/pebble.py: note: At top level:
- ops/pebble.py:2977: error: "type: ignore" comment without error code (consider "type: ignore[no-any-expr]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "send_signal" of class "Client":
- ops/pebble.py:3006:16: error: Condition is always false [redundant-expr]
- ops/pebble.py: note: In member "get_checks" of class "Client":
- ops/pebble.py:3031:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:3033:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3035:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3035:30: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/pebble.py:3036:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3036:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3037:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3037:37: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3037:55: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3037:55: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "notify" of class "Client":
- ops/pebble.py:3059:9: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/pebble.py:3065:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3067:13: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3068:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3068:58: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3069:9: error: Returning Any from function declared to return "str" [no-any-return]
- ops/pebble.py:3069:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3069:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_notice" of class "Client":
- ops/pebble.py:3077:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3078:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3078:33: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "get_notices" of class "Client":
- ops/pebble.py:3113:30: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3120:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3121:16: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3121:34: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3121:52: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/pebble.py:3121:52: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py: note: In member "_process_body" of class "_FilesParser":
- ops/pebble.py:3177:24: error: Expression has type "Any" [no-any-expr]
- ops/pebble.py:3183:27: error: "_get_open_tempfile" of "_FilesParser" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:3184:17: error: "None" has no attribute "write" [attr-defined]
- ops/pebble.py:3185:17: error: "None" has no attribute "close" [attr-defined]
- ops/pebble.py:3189:27: error: "_get_open_tempfile" of "_FilesParser" does not return a value (it only ever returns None) [func-returns-value]
- ops/pebble.py:3190:17: error: "None" has no attribute "write" [attr-defined]
- ops/pebble.py: note: At top level:
- ops/pebble.py:3204: error: "type: ignore" comment without error code (consider "type: ignore[assignment]" instead) [ignore-without-code]
- ops/pebble.py: note: In member "_get_open_tempfile" of class "_FilesParser":
- ops/pebble.py:3208:9: error: No return value expected [return-value]
- ops/pebble.py: note: In member "filenames" of class "_FilesParser":
- ops/pebble.py:3216:9: error: No return value expected [return-value]
- ops/pebble.py: note: In member "get_file" of class "_FilesParser":
- ops/pebble.py:3224:19: error: Expression type contains "Any" (has type "IO[Any]") [no-any-expr]
- ops/model.py:66:1: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: In member "get_relation" of class "Model":
- ops/model.py:250:16: error: "_get_unique" of "RelationMapping" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py: note: In function "status":
- ops/model.py:406:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "status" of class "Application":
- ops/model.py:406:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In function "status":
- ops/model.py:407:13: error: Statement is unreachable [unreachable]
- ops/model.py: note: In member "status" of class "Application":
- ops/model.py:407:13: error: Statement is unreachable [unreachable]
- ops/model.py: note: In function "status":
- ops/model.py:410:24: error: "from_name" of "StatusBase" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py: note: In member "status" of class "Application":
- ops/model.py:410:24: error: "from_name" of "StatusBase" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py: note: In function "status":
- ops/model.py:411:16: error: Incompatible return value type (got "None", expected "StatusBase") [return-value]
- ops/model.py: note: In member "status" of class "Application":
- ops/model.py:411:16: error: Incompatible return value type (got "None", expected "StatusBase") [return-value]
- ops/model.py:415:12: error: Condition is always false [redundant-expr]
- ops/model.py:427:31: error: Expression has type "Any" [no-any-expr]
- ops/model.py:429:24: error: Incompatible types in assignment (expression has type "StatusBase", variable has type "None") [assignment]
- ops/model.py: note: In member "__repr__" of class "Application":
- ops/model.py:453:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:453:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:454:9: error: No return value expected [return-value]
- ops/model.py: note: In function "_calculate_expiry":
- ops/model.py:505:10: error: Condition is always true [redundant-expr]
- ops/model.py: note: In function "status":
- ops/model.py:577:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "status" of class "Unit":
- ops/model.py:577:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In function "status":
- ops/model.py:578:13: error: Statement is unreachable [unreachable]
- ops/model.py: note: In member "status" of class "Unit":
- ops/model.py:578:13: error: Statement is unreachable [unreachable]
- ops/model.py: note: In function "status":
- ops/model.py:581:24: error: "from_name" of "StatusBase" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py: note: In member "status" of class "Unit":
- ops/model.py:581:24: error: "from_name" of "StatusBase" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py: note: In function "status":
- ops/model.py:582:16: error: Incompatible return value type (got "None", expected "StatusBase") [return-value]
- ops/model.py: note: In member "status" of class "Unit":
- ops/model.py:582:16: error: Incompatible return value type (got "None", expected "StatusBase") [return-value]
- ops/model.py:586:12: error: Condition is always false [redundant-expr]
- ops/model.py:594:24: error: Incompatible types in assignment (expression has type "StatusBase", variable has type "None") [assignment]
- ops/model.py: note: In member "__repr__" of class "Unit":
- ops/model.py:596:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:596:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:597:9: error: No return value expected [return-value]
- ops/model.py: note: In member "set_workload_version" of class "Unit":
- ops/model.py:622:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "__contains__" of class "_GenericLazyMapping":
- ops/model.py:841:5: error: Method "__contains__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:841:28: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object" [override]
- ops/model.py:841:28: note: This violates the Liskov substitution principle
- ops/model.py:841:28: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/model.py:841:28: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object" [override]
- ops/model.py: note: In member "__len__" of class "_GenericLazyMapping":
- ops/model.py:844:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py: note: In member "__iter__" of class "_GenericLazyMapping":
- ops/model.py:847:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:847:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:848:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getitem__" of class "_GenericLazyMapping":
- ops/model.py:850:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py: note: In member "__repr__" of class "_GenericLazyMapping":
- ops/model.py:853:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py: note: In member "__contains__" of class "RelationMapping":
- ops/model.py:886:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Mapping" [override]
- ops/model.py:886:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Container" [override]
- ops/model.py:886:5: error: Method "__contains__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:886:28: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object" [override]
- ops/model.py:886:28: note: This violates the Liskov substitution principle
- ops/model.py:886:28: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/model.py:886:28: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object" [override]
- ops/model.py:887:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "RelationMapping":
- ops/model.py:889:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:889:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:890:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "RelationMapping":
- ops/model.py:892:5: error: Return type "Iterable[str]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:892:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py: note: In member "__getitem__" of class "RelationMapping":
- ops/model.py:895:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py: note: In member "_get_unique" of class "RelationMapping":
- ops/model.py:920:16: error: Condition is always false [redundant-expr]
- ops/model.py:927:21: error: No return value expected [return-value]
- ops/model.py:931:17: error: No return value expected [return-value]
- ops/model.py:945:13: error: No return value expected [return-value]
- ops/model.py: note: In member "get" of class "BindingMapping":
- ops/model.py:963:5: error: Signature of "get" incompatible with supertype "Mapping" [override]
- ops/model.py:963:5: note: Superclass:
- ops/model.py:963:5: note: @overload
- ops/model.py:963:5: note: def get(self, str, /) -> Binding | None
- ops/model.py:963:5: note: @overload
- ops/model.py:963:5: note: def [_T] get(self, str, /, default: Binding | _T@get) -> Binding | _T@get
- ops/model.py:963:5: note: Subclass:
- ops/model.py:963:5: note: def get(self, binding_key: str | Relation) -> Binding
- ops/model.py:963:5: error: Method "get" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:971:14: error: Condition is always true [redundant-expr]
- ops/model.py: note: In member "__getitem__" of class "BindingMapping":
- ops/model.py:985:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py: note: In member "__iter__" of class "BindingMapping":
- ops/model.py:988:5: error: Return type "Iterable[Binding]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:988:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py: note: In member "__len__" of class "BindingMapping":
- ops/model.py:991:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py: note: In member "network" of class "Binding":
- ops/model.py:1013:12: error: Condition is always true [redundant-expr]
- ops/model.py:1015:33: error: Incompatible types in assignment (expression has type "Network", variable has type "None") [assignment]
- ops/model.py:1021:33: error: Incompatible types in assignment (expression has type "Network", variable has type "None") [assignment]
- ops/model.py:1022:16: error: Incompatible return value type (got "None", expected "Network") [return-value]
- ops/model.py: note: In member "__init__" of class "Network":
- ops/model.py:1074:35: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment]
- ops/model.py: note: In member "__init__" of class "NetworkInterface":
- ops/model.py:1148:21: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment]
- ops/model.py: note: In member "from_dict" of class "SecretInfo":
- ops/model.py:1195:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: In class "SecretInfo":
- ops/model.py:1195:5: error: Type of decorated function contains type "Any" ("def (cls: type[SecretInfo], id: str, d: dict[str, Any]) -> SecretInfo") [no-any-decorated]
- ops/model.py: note: In member "from_dict" of class "SecretInfo":
- ops/model.py:1197:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:1199:64: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:1202:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:1205:46: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:1206:39: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:1210:52: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py: note: In member "__repr__" of class "SecretInfo":
- ops/model.py:1213:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1213:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1214:9: error: No return value expected [return-value]
- ops/model.py:1215:13: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- ops/model.py: note: In member "__repr__" of class "Secret":
- ops/model.py:1258:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1258:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1264:9: error: No return value expected [return-value]
- ops/model.py: note: In member "_validate_content" of class "Secret":
- ops/model.py:1288:16: error: Condition is always false [redundant-expr]
- ops/model.py:1289:17: error: Statement is unreachable [unreachable]
- ops/model.py: note: In member "__repr__" of class "Relation":
- ops/model.py:1644:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1644:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1645:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__init__" of class "RelationData":
- ops/model.py:1664:25: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1666:43: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1667:47: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1669:27: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1670:13: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1670:39: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1670:54: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1670:81: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1673:12: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1675:17: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1675:17: error: Expression type contains "Any" (has type "(Any, RelationDataContent)") [no-any-expr]
- ops/model.py:1675:56: error: Expression has type "Any" [no-any-expr]
- ops/model.py:1675:71: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "__contains__" of class "RelationData":
- ops/model.py:1678:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Mapping" [override]
- ops/model.py:1678:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Container" [override]
- ops/model.py:1678:5: error: Method "__contains__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:1678:28: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object" [override]
- ops/model.py:1678:28: note: This violates the Liskov substitution principle
- ops/model.py:1678:28: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/model.py:1678:28: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object" [override]
- ops/model.py:1679:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "RelationData":
- ops/model.py:1681:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:1681:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:1682:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "RelationData":
- ops/model.py:1684:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[Unit | Application]" in supertype "Iterable" [override]
- ops/model.py:1684:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:1685:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getitem__" of class "RelationData":
- ops/model.py:1687:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py: note: In member "__repr__" of class "RelationData":
- ops/model.py:1690:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1690:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1691:9: error: No return value expected [return-value]
- ops/model.py: note: In member "_load" of class "RelationDataContent":
- ops/model.py:1714:5: error: Method "_load" is not using @override but is overriding a method in class "ops.model._GenericLazyMapping" [explicit-override]
- ops/model.py: note: In member "_validate_read" of class "RelationDataContent":
- ops/model.py:1743:12: error: Condition is always false [redundant-expr]
- ops/model.py:1764:9: error: No return value expected [return-value]
- ops/model.py: note: In member "_validate_write" of class "RelationDataContent":
- ops/model.py:1774:12: error: Condition is always false [redundant-expr]
- ops/model.py:1776:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "__setitem__" of class "RelationDataContent":
- ops/model.py:1808:5: error: Method "__setitem__" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- ops/model.py: note: In member "__getitem__" of class "RelationDataContent":
- ops/model.py:1827:5: error: Method "__getitem__" is not using @override but is overriding a method in class "ops.model._GenericLazyMapping" [explicit-override]
- ops/model.py: note: In member "update" of class "RelationDataContent":
- ops/model.py:1831:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:1831:5: error: Method "update" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- ops/model.py:1833:24: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "__delitem__" of class "RelationDataContent":
- ops/model.py:1835:5: error: Method "__delitem__" is not using @override but is overriding a method in class "typing.MutableMapping" [explicit-override]
- ops/model.py: note: In member "__repr__" of class "RelationDataContent":
- ops/model.py:1841:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "_GenericLazyMapping" [override]
- ops/model.py:1841:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1841:5: error: Method "__repr__" is not using @override but is overriding a method in class "ops.model._GenericLazyMapping" [explicit-override]
- ops/model.py:1845:13: error: No return value expected [return-value]
- ops/model.py:1846:9: error: No return value expected [return-value]
- ops/model.py: note: In member "_load" of class "ConfigData":
- ops/model.py:1858:5: error: Method "_load" is not using @override but is overriding a method in class "ops.model._GenericLazyMapping" [explicit-override]
- ops/model.py: note: In member "__eq__" of class "StatusBase":
- ops/model.py:1879:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1879:22: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object" [override]
- ops/model.py:1879:22: note: This violates the Liskov substitution principle
- ops/model.py:1879:22: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/model.py:1879:22: note: It is recommended for "__eq__" to work with arbitrary objects, for example:
- ops/model.py:1879:22: note: def __eq__(self, other: object) -> bool:
- ops/model.py:1879:22: note: if not isinstance(other, StatusBase):
- ops/model.py:1879:22: note: return NotImplemented
- ops/model.py:1879:22: note: return <logic to compare two StatusBase instances>
- ops/model.py: note: In member "__repr__" of class "StatusBase":
- ops/model.py:1884:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1884:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:1885:9: error: No return value expected [return-value]
- ops/model.py: note: In member "from_name" of class "StatusBase":
- ops/model.py:1903:13: error: No return value expected [return-value]
- ops/model.py:1905:13: error: No return value expected [return-value]
- ops/model.py: note: In member "register" of class "StatusBase":
- ops/model.py:1910:12: error: Condition is always false [redundant-expr]
- ops/model.py:1916:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "UnknownStatus":
- ops/model.py:1953:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:1953:5: error: Method "__repr__" is not using @override but is overriding a method in class "ops.model.StatusBase" [explicit-override]
- ops/model.py:1954:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__contains__" of class "StorageMapping":
- ops/model.py:2086:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Mapping" [override]
- ops/model.py:2086:5: error: Return type "None" of "__contains__" incompatible with return type "bool" in supertype "Container" [override]
- ops/model.py:2086:5: error: Method "__contains__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:2086:28: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object" [override]
- ops/model.py:2086:28: note: This violates the Liskov substitution principle
- ops/model.py:2086:28: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/model.py:2086:28: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object" [override]
- ops/model.py:2087:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "StorageMapping":
- ops/model.py:2089:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:2089:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:2090:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "StorageMapping":
- ops/model.py:2092:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:2092:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:2093:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getitem__" of class "StorageMapping":
- ops/model.py:2095:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py: note: In function "location":
- ops/model.py:2161:12: error: Condition is always true [redundant-expr]
- ops/model.py: note: In member "location" of class "Storage":
- ops/model.py:2161:12: error: Condition is always true [redundant-expr]
- ops/model.py: note: In function "location":
- ops/model.py:2163:30: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment]
- ops/model.py: note: In member "location" of class "Storage":
- ops/model.py:2163:30: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment]
- ops/model.py: note: In function "location":
- ops/model.py:2164:16: error: Incompatible return value type (got "None", expected "Path") [return-value]
- ops/model.py: note: In member "location" of class "Storage":
- ops/model.py:2164:16: error: Incompatible return value type (got "None", expected "Path") [return-value]
- ops/model.py:2173:26: error: Incompatible types in assignment (expression has type "Path", variable has type "None") [assignment]
- ops/model.py: note: In member "__str__" of class "MultiPushPullError":
- ops/model.py:2197:5: error: Return type "None" of "__str__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:2197:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:2198:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "MultiPushPullError":
- ops/model.py:2200:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:2200:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:2201:9: error: No return value expected [return-value]
- ops/model.py: note: In member "add_layer" of class "Container":
- ops/model.py:2332:39: error: Expression type contains "Any" (has type "str | LayerDict | Layer") [no-any-expr]
- ops/model.py: note: In member "get_check" of class "Container":
- ops/model.py:2387:12: error: Condition is always true [redundant-expr]
- ops/model.py:2389:9: error: Statement is unreachable [unreachable]
- ops/model.py: note: In member "push_path" of class "Container":
- ops/model.py:2553:67: error: Argument 2 to "_list_recursive" of "Container" has incompatible type "str | Path"; expected "Path" [arg-type]
- ops/model.py: note: In member "pull_path" of class "Container":
- ops/model.py:2636:72: error: Argument 2 to "_list_recursive" of "Container" has incompatible type "str | Path"; expected "Path" [arg-type]
- ops/model.py: note: In function "exec":
- ops/model.py:2855:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: In member "exec" of class "Container":
- ops/model.py:2855:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: At top level:
- ops/model.py:2900: error: "type: ignore" comment without error code (consider "type: ignore[arg-type, misc]" instead) [ignore-without-code]
- ops/model.py:2901: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/model.py:2902: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/model.py:2903: error: "type: ignore" comment without error code (consider "type: ignore[arg-type]" instead) [ignore-without-code]
- ops/model.py: note: In member "__getitem__" of class "ContainerMapping":
- ops/model.py:2978:5: error: Return type "None" of "__getitem__" incompatible with return type "Container" in supertype "Mapping" [override]
- ops/model.py:2978:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:2979:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "ContainerMapping":
- ops/model.py:2981:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:2981:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:2982:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "ContainerMapping":
- ops/model.py:2984:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:2984:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:2985:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "ContainerMapping":
- ops/model.py:2987:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:2987:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:2988:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getitem__" of class "ServiceInfoMapping":
- ops/model.py:3001:5: error: Return type "None" of "__getitem__" incompatible with return type "ServiceInfo" in supertype "Mapping" [override]
- ops/model.py:3001:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:3002:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "ServiceInfoMapping":
- ops/model.py:3004:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:3004:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:3005:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "ServiceInfoMapping":
- ops/model.py:3007:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:3007:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:3008:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "ServiceInfoMapping":
- ops/model.py:3010:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:3010:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:3011:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getitem__" of class "CheckInfoMapping":
- ops/model.py:3024:5: error: Return type "None" of "__getitem__" incompatible with return type "CheckInfo" in supertype "Mapping" [override]
- ops/model.py:3024:5: error: Method "__getitem__" is not using @override but is overriding a method in class "typing.Mapping" [explicit-override]
- ops/model.py:3025:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__iter__" of class "CheckInfoMapping":
- ops/model.py:3027:5: error: Return type "None" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable" [override]
- ops/model.py:3027:5: error: Method "__iter__" is not using @override but is overriding a method in class "typing.Iterable" [explicit-override]
- ops/model.py:3028:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__len__" of class "CheckInfoMapping":
- ops/model.py:3030:5: error: Return type "None" of "__len__" incompatible with return type "int" in supertype "Collection" [override]
- ops/model.py:3030:5: error: Method "__len__" is not using @override but is overriding a method in class "typing.Collection" [explicit-override]
- ops/model.py:3031:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "CheckInfoMapping":
- ops/model.py:3033:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:3033:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:3034:9: error: No return value expected [return-value]
- ops/model.py: note: In function "_format_action_result_dict":
- ops/model.py:3091:1: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3125:5: error: Expression type contains "Any" (has type "(str, Any)") [no-any-expr]
- ops/model.py:3125:5: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3125:23: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3125:23: error: Expression type contains "Any" (has type "dict_items[str, Any]") [no-any-expr]
- ops/model.py:3127:12: error: Condition is always false [redundant-expr]
- ops/model.py:3139:23: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3140:21: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3140:21: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3141:50: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3147:28: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "__init__" of class "_ModelBackend":
- ops/model.py:3176:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "_run" of class "_ModelBackend":
- ops/model.py:3189:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3189:5: error: Missing return statement [return]
- ops/model.py:3189:5: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-return for more info
- ops/model.py: note: At top level:
- ops/model.py:3213: error: "type: ignore" comment without error code (consider "type: ignore[call-overload]" instead) [ignore-without-code]
- ops/model.py: note: In member "_run" of class "_ModelBackend":
- ops/model.py:3215:30: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: At top level:
- ops/model.py:3217: error: Unused "type: ignore" comment [unused-ignore]
- ops/model.py:3220: error: Unused "type: ignore" comment [unused-ignore]
- ops/model.py:3222: error: "type: ignore" comment without error code (consider "type: ignore[no-any-expr]" instead) [ignore-without-code]
- ops/model.py:3224: error: Unused "type: ignore" comment [unused-ignore]
- ops/model.py: note: In member "relation_ids" of class "_ModelBackend":
- ops/model.py:3231:24: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "relation_list" of class "_ModelBackend":
- ops/model.py:3237:24: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "relation_remote_app_name" of class "_ModelBackend":
- ops/model.py:3260:22: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "relation_get" of class "_ModelBackend":
- ops/model.py:3278:12: error: Condition is always false [redundant-expr]
- ops/model.py:3292:32: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "relation_set" of class "_ModelBackend":
- ops/model.py:3300:12: error: Condition is always false [redundant-expr]
- ops/model.py:3315:38: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- ops/model.py: note: In member "config_get" of class "_ModelBackend":
- ops/model.py:3323:15: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "is_leader" of class "_ModelBackend":
- ops/model.py:3332:12: error: Condition is always true [redundant-expr]
- ops/model.py:3335:13: error: Statement is unreachable [unreachable]
- ops/model.py:3340:39: error: Incompatible types in assignment (expression has type "float", variable has type "None") [assignment]
- ops/model.py:3341:25: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "resource_get" of class "_ModelBackend":
- ops/model.py:3348:15: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "pod_spec_set" of class "_ModelBackend":
- ops/model.py:3351:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3358:32: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- ops/model.py:3360:16: error: Expression type contains "Any" (has type "Mapping[str, Any] | None") [no-any-expr]
- ops/model.py:3363:36: error: Expression type contains "Any" (has type "Mapping[str, Any]") [no-any-expr]
- ops/model.py: note: In member "status_get" of class "_ModelBackend":
- ops/model.py:3376:19: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "status_set" of class "_ModelBackend":
- ops/model.py:3414:12: error: Condition is always false [redundant-expr]
- ops/model.py: note: In member "storage_list" of class "_ModelBackend":
- ops/model.py:3419:20: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "_storage_event_details" of class "_ModelBackend":
- ops/model.py:3424:18: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "storage_get" of class "_ModelBackend":
- ops/model.py:3442:15: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "storage_add" of class "_ModelBackend":
- ops/model.py:3448:12: error: Left operand of "or" is always false [redundant-expr]
- ops/model.py:3449:29: error: The type "type[bool]" doesn't define a __format__, __str__ or __repr__ method [helpful-string]
- ops/model.py: note: In member "action_get" of class "_ModelBackend":
- ops/model.py:3452:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3453:15: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py:3454:16: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3454:16: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py: note: In member "action_set" of class "_ModelBackend":
- ops/model.py:3456:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3459:51: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py: note: In member "network_get" of class "_ModelBackend":
- ops/model.py:3503:23: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "add_metrics" of class "_ModelBackend":
- ops/model.py:3523:9: error: Incompatible types in assignment (expression has type "int | float", variable has type "str") [assignment]
- ops/model.py:3525:28: error: "format_metric_value" of "_ModelBackendValidator" does not return a value (it only ever returns None) [func-returns-value]
- ops/model.py:3525:71: error: Argument 1 to "format_metric_value" of "_ModelBackendValidator" has incompatible type "str"; expected "int | float" [arg-type]
- ops/model.py:3526:32: error: The string for "None" isn't helpful in a user-facing or semantic string [helpful-string]
- ops/model.py: note: In member "planned_units" of class "_ModelBackend":
- ops/model.py:3544:21: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py:3545:21: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3545:21: error: Expression type contains "Any" (has type "dict[str, dict[str, Any]]") [no-any-expr]
- ops/model.py:3549:17: error: Expression type contains "Any" (has type "dict[str, dict[str, Any]]") [no-any-expr]
- ops/model.py:3549:17: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3549:40: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3550:24: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3550:39: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3550:39: error: Expression type contains "Any" (has type "dict_values[str, Any]") [no-any-expr]
- ops/model.py:3550:57: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "secret_get" of class "_ModelBackend":
- ops/model.py:3579:22: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "_run_for_secret" of class "_ModelBackend":
- ops/model.py:3586:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3590:20: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "secret_info_get" of class "_ModelBackend":
- ops/model.py:3604:18: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py:3605:22: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3605:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3606:19: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3607:41: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3607:41: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3607:69: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py: note: In member "secret_add" of class "_ModelBackend":
- ops/model.py:3663:22: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py: note: In member "credential_get" of class "_ModelBackend":
- ops/model.py:3738:18: error: Expression type contains "Any" (has type "str | Any | None") [no-any-expr]
- ops/model.py:3739:36: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py:3739:36: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py: note: In member "format_metric_value" of class "_ModelBackendValidator":
- ops/model.py:3764:12: error: Condition is always false [redundant-expr]
- ops/model.py:3773:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__repr__" of class "LazyNotice":
- ops/model.py:3817:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:3817:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:3819:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getattr__" of class "LazyNotice":
- ops/model.py:3824:9: error: Returning Any from function declared to return "None" [no-any-return]
- ops/model.py:3824:16: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "__repr__" of class "LazyCheckInfo":
- ops/model.py:3854:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]
- ops/model.py:3854:5: error: Method "__repr__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/model.py:3855:9: error: No return value expected [return-value]
- ops/model.py: note: In member "__getattr__" of class "LazyCheckInfo":
- ops/model.py:3860:9: error: Returning Any from function declared to return "None" [no-any-return]
- ops/model.py:3860:16: error: Expression has type "Any" [no-any-expr]
- ops/model.py: note: In member "from_dict" of class "CloudCredential":
- ops/model.py:3890:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: In class "CloudCredential":
- ops/model.py:3890:5: error: Type of decorated function contains type "Any" ("def (cls: type[CloudCredential], d: dict[str, Any]) -> CloudCredential") [no-any-decorated]
- ops/model.py: note: In member "from_dict" of class "CloudCredential":
- ops/model.py:3893:23: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3893:23: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3894:24: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3894:24: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3894:24: error: Expression type contains "Any" (has type "Any | dict[Any, Any]") [no-any-expr]
- ops/model.py:3894:42: error: Expression type contains "Any" (has type "dict[Any, Any]") [no-any-expr]
- ops/model.py:3895:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3895:22: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3895:22: error: Expression type contains "Any" (has type "Any | list[Any]") [no-any-expr]
- ops/model.py:3895:43: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/model.py: note: In member "from_dict" of class "CloudSpec":
- ops/model.py:3934:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/model.py: note: In class "CloudSpec":
- ops/model.py:3934:5: error: Type of decorated function contains type "Any" ("def (cls: type[CloudSpec], d: dict[str, Any]) -> CloudSpec") [no-any-decorated]
- ops/model.py: note: In member "from_dict" of class "CloudSpec":
- ops/model.py:3937:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3937:18: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3938:18: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3938:18: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3939:20: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3939:20: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3940:22: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3940:22: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3941:31: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3941:31: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3942:30: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3942:30: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3943:50: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3943:50: error: Expression has type "Any" [no-any-expr]
- ops/model.py:3943:70: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3943:70: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3944:29: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3944:29: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3944:29: error: Expression type contains "Any" (has type "Any | list[Any]") [no-any-expr]
- ops/model.py:3944:56: error: Expression type contains "Any" (has type "list[Any]") [no-any-expr]
- ops/model.py:3945:29: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3945:29: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3945:29: error: Expression type contains "Any" (has type "Any | bool") [no-any-expr]
- ops/model.py:3946:33: error: Expression type contains "Any" (has type "dict[str, Any]") [no-any-expr]
- ops/model.py:3946:33: error: Expression type contains "Any" (has type "Any | None") [no-any-expr]
- ops/model.py:3946:33: error: Expression type contains "Any" (has type "Any | bool") [no-any-expr]
- ops/log.py: note: In member "emit" of class "JujuLogHandler":
- ops/log.py:32:5: error: Method "emit" is not using @override but is overriding a method in class "logging.Handler" [explicit-override]
- ops/log.py: note: In function "setup_root_logging":
- ops/log.py:73:22: error: Incompatible types in assignment (expression has type "def (etype: type[BaseException], value: BaseException, tb: TracebackType) -> None", variable has type "(type[BaseException], BaseException, TracebackType | None) -> Any") [assignment]
- ops/framework.py: note: In class "Serializable":
- ops/framework.py:58:5: error: All protocol members must have explicitly declared types [misc]
- ops/framework.py: note: In member "snapshot" of class "Serializable":
- ops/framework.py:64:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/framework.py: note: In member "restore" of class "Serializable":
- ops/framework.py:65:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/framework.py: note: In class "_StoredObject":
- ops/framework.py:69:5: error: Explicit "Any" is not allowed [no-any-explicit]
- ops/framework.py: note: At top level:
- ops/framework.py:76:28: error: Variable "ops.framework._Path" is not valid as a type [valid-type]
- ops/framework.py:76:28: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:76:28: note: See https://kotlinisland.github.io/basedmypy/_refs.html#code-valid-type for more info
- ops/framework.py:76:35: error: Variable "ops.framework._MethodName" is not valid as a type [valid-type]
- ops/framework.py:76:35: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:76:48: error: Variable "ops.framework._Path" is not valid as a type [valid-type]
- ops/framework.py:76:48: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:76:55: error: Variable "ops.framework._EventKey" is not valid as a type [valid-type]
- ops/framework.py:76:55: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:77:30: error: Variable "ops.framework._Path" is not valid as a type [valid-type]
- ops/framework.py:77:30: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:77:38: error: Variable "ops.framework._Kind" is not valid as a type [valid-type]
- ops/framework.py:77:38: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:78:29: error: Variable "ops.framework._Path" is not valid as a type [valid-type]
- ops/framework.py:78:29: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py:79:35: error: Variable "ops.framework._Path" is not valid as a type [valid-type]
- ops/framework.py:79:35: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#variables-vs-type-aliases
- ops/framework.py: note: In member "__hash__" of class "Handle":
- ops/framework.py:124:5: error: Return type "None" of "__hash__" incompatible with return type "int" in supertype "object" [override]
- ops/framework.py:124:5: error: Method "__hash__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/framework.py:125:9: error: No return value expected [return-value]
- ops/framework.py: note: In member "__eq__" of class "Handle":
- ops/framework.py:127:5: error: Return type "None" of "__eq__" incompatible with return type "bool" in supertype "object" [override]
- ops/framework.py:127:5: error: Method "__eq__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/framework.py:127:22: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object" [override]
- ops/framework.py:127:22: note: This violates the Liskov substitution principle
- ops/framework.py:127:22: note: See https://kotlinisland.github.io/basedmypy/common_issues.html#incompatible-overrides
- ops/framework.py:127:22: note: It is recommended for "__eq__" to work with arbitrary objects, for example:
- ops/framework.py:127:22: note: def __eq__(self, other: object) -> bool:
- ops/framework.py:127:22: note: if not isinstance(other, Handle):
- ops/framework.py:127:22: note: return NotImplemented
- ops/framework.py:127:22: note: return <logic to compare two Handle instances>
- ops/framework.py:128:9: error: No return value expected [return-value]
- ops/framework.py: note: In member "__str__" of class "Handle":
- ops/framework.py:130:5: error: Return type "None" of "__str__" incompatible with return type "str" in supertype "object" [override]
- ops/framework.py:130:5: error: Method "__str__" is not using @override but is overriding a method in class "builtins.object" [explicit-override]
- ops/framework.py:131:9: error: No return value expected [return-value]
- ops/framework.py: note: In member "from_path" of class "Handle":
- ops/framework.py:158:20: error: Incompatible types in assignment (expression has type "list[str]", variable has type "str") [assignment]
- ops/framework.py:164:29: error: Unpacking a string is disallowed [misc]
- ops/framework.py:165:20: error: Condition is always false [redundant-expr]
- ops/framework.py:165:28: error: Right operand of "and" is never evaluated [unreachable]
- ops/framework.py:166:21: error: Statement is unreachable [unreachable]
- ops/framework.py: note: At top level:
- ops/framework.py:170: error: "type: ignore" comment without error code (consider "type: ignore[possibly-undefined]" instead) [ignore-without-code]
- ops/framework.py:185: error: "type: ignore" comment without error code (consider "type: ignore[assignment]" instead) [ignore-without-code]
- ops/framework.py: note: In member "__repr__" of class "EventBase":
- ops/framework.py:192:5: error: Return type "None" of "__repr__" incompatible with return type "str" in supertype "object" [override]```</details>
... (truncated 54632 lines) ... |
No description provided.