Skip to content

Commit

Permalink
set baseline with correct mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
chadrik committed Aug 5, 2024
1 parent 0682efb commit 99fd059
Showing 1 changed file with 59 additions and 6 deletions.
65 changes: 59 additions & 6 deletions mypy-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ src/rez/version/_requirement.py:0: error: Unsupported left operand type for & ("
src/rez/version/_requirement.py:0: note: Both left and right operands are unions
src/rez/version/_requirement.py:0: error: Item "None" of "VersionRange | None" has no attribute "is_any" [union-attr]
src/rez/utils/formatting.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
src/rez/utils/scope.py:0: error: Signature of "update" incompatible with supertype "MutableMapping" [override]
src/rez/utils/scope.py:0: note: Superclass:
src/rez/utils/scope.py:0: note: @overload
src/rez/utils/scope.py:0: note: def update(self, SupportsKeysAndGetItem[Any, Any], /, **kwargs: Any) -> None
src/rez/utils/scope.py:0: note: @overload
src/rez/utils/scope.py:0: note: def update(self, Iterable[tuple[Any, Any]], /, **kwargs: Any) -> None
src/rez/utils/scope.py:0: note: @overload
src/rez/utils/scope.py:0: note: def update(self, **kwargs: Any) -> None
src/rez/utils/scope.py:0: note: Subclass:
src/rez/utils/scope.py:0: note: def update(self, data: Any) -> Any
src/rez/util.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type]
src/rez/util.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr]
src/rez/util.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr]
Expand Down Expand Up @@ -68,6 +78,14 @@ src/rez/config.py:0: error: Module has no attribute "load" [attr-defined]
src/rez/config.py:0: error: Module has no attribute "FullLoader" [attr-defined]
src/rez/rex.py:0: error: "ActionInterpreter" has no attribute "get_key_token" [attr-defined]
src/rez/rex.py:0: error: Item "None" of "ActionManager | None" has no attribute "environ" [union-attr]
src/rez/rex.py:0: error: Signature of "format" incompatible with supertype "Formatter" [override]
src/rez/rex.py:0: note: Superclass:
src/rez/rex.py:0: note: @overload
src/rez/rex.py:0: note: def format(self, str, /, *args: str, **kwargs: str) -> str
src/rez/rex.py:0: note: @overload
src/rez/rex.py:0: note: def format(self, str, /, *args: Any, **kwargs: Any) -> str
src/rez/rex.py:0: note: Subclass:
src/rez/rex.py:0: note: def format(self, format_string: Any, *args: Any, **kwargs: Any) -> Any
src/rez/rex.py:0: error: Exception type must be derived from BaseException (or be a tuple of exception classes) [misc]
src/rez/rex.py:0: error: Exception type must be derived from BaseException (or be a tuple of exception classes) [misc]
src/rez/utils/resources.py:0: error: Module "typing" has no attribute "Self" [attr-defined]
Expand All @@ -86,11 +104,11 @@ src/rez/shells.py:0: error: Incompatible types in assignment (expression has typ
src/rez/shells.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "list[str]") [assignment]
src/rez/plugin_managers.py:0: error: "type[property]" has no attribute "uncache" [attr-defined]
src/rez/plugin_managers.py:0: error: List item 0 has incompatible type "MutableSequence[str]"; expected "str" [list-item]
src/rez/plugin_managers.py:0: error: Missing positional argument "path" in call to "find_module" of "MetaPathFinder" [call-arg]
src/rez/plugin_managers.py:0: error: Item "None" of "Loader | None" has no attribute "load_module" [union-attr]
src/rez/plugin_managers.py:0: error: Item "MetaPathFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "find_module" [union-attr]
src/rez/plugin_managers.py:0: error: Item "PathEntryFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "find_module" [union-attr]
src/rez/plugin_managers.py:0: error: Value of type variable "AnyOrLiteralStr" of "dirname" cannot be "str | None" [type-var]
src/rez/plugin_managers.py:0: error: Item "MetaPathFinder" of "MetaPathFinder | PathEntryFinder" has no attribute "path" [union-attr]
src/rez/plugin_managers.py:0: error: Item "PathEntryFinder" of "MetaPathFinder | PathEntryFinder" has no attribute "path" [union-attr]
src/rez/plugin_managers.py:0: error: Item "MetaPathFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "path" [union-attr]
src/rez/plugin_managers.py:0: error: Item "PathEntryFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "path" [union-attr]
src/rez/plugin_managers.py:0: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, str, Any | str, str]"; expected "list[str]" [arg-type]
src/rez/plugin_managers.py:0: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, str, str, str]"; expected "list[str]" [arg-type]
src/rez/package_resources.py:0: error: Incompatible types in assignment (expression has type "type[PackageMetadataError]", base class "Resource" defined the type as "type[Exception]") [assignment]
Expand Down Expand Up @@ -290,18 +308,53 @@ src/rez/cli/benchmark.py:0: error: Argument 1 to "join" has incompatible type "s
src/rez/cli/benchmark.py:0: error: Name "_opts" is not defined [name-defined]
src/rez/cli/benchmark.py:0: error: Argument 1 to "join" has incompatible type "str | None"; expected "str" [arg-type]
src/rez/cli/_util.py:0: error: Module has no attribute "CTRL_C_EVENT" [attr-defined]
src/rezplugins/shell/cmd.py:0: error: Signature of "spawn_shell" incompatible with supertype "Shell" [override]
src/rezplugins/shell/cmd.py:0: note: Superclass:
src/rezplugins/shell/cmd.py:0: note: def spawn_shell(self, context_file: Any, tmpdir: Any, rcfile: Any = ..., norc: Any = ..., stdin: Any = ..., command: Any = ..., env: Any = ..., quiet: Any = ..., pre_command: Any = ..., add_rez: Any = ..., package_commands_sourced_first: Any = ..., **Popen_args: Any) -> Popen[Any]
src/rezplugins/shell/cmd.py:0: note: Subclass:
src/rezplugins/shell/cmd.py:0: note: def spawn_shell(self, context_file: Any, tmpdir: Any, rcfile: Any = ..., norc: Any = ..., stdin: Any = ..., command: Any = ..., env: Any = ..., quiet: Any = ..., pre_command: Any = ..., add_rez: Any = ..., **Popen_args: Any) -> Any
src/rezplugins/shell/_utils/powershell_base.py:0: error: Signature of "spawn_shell" incompatible with supertype "Shell" [override]
src/rezplugins/shell/_utils/powershell_base.py:0: note: Superclass:
src/rezplugins/shell/_utils/powershell_base.py:0: note: def spawn_shell(self, context_file: Any, tmpdir: Any, rcfile: Any = ..., norc: Any = ..., stdin: Any = ..., command: Any = ..., env: Any = ..., quiet: Any = ..., pre_command: Any = ..., add_rez: Any = ..., package_commands_sourced_first: Any = ..., **Popen_args: Any) -> Popen[Any]
src/rezplugins/shell/_utils/powershell_base.py:0: note: Subclass:
src/rezplugins/shell/_utils/powershell_base.py:0: note: def spawn_shell(self, context_file: Any, tmpdir: Any, rcfile: Any = ..., norc: Any = ..., stdin: Any = ..., command: Any = ..., env: Any = ..., quiet: Any = ..., pre_command: Any = ..., add_rez: Any = ..., **Popen_args: Any) -> Any
src/rezplugins/release_vcs/stub.py:0: error: Module has no attribute "load" [attr-defined]
src/rezplugins/release_vcs/stub.py:0: error: Module has no attribute "FullLoader" [attr-defined]
src/rezplugins/release_vcs/hg.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment]
src/rezplugins/release_vcs/git.py:0: error: Name "retain_cwd" is not defined [name-defined]
src/rezplugins/release_vcs/git.py:0: error: Name "git" is not defined [name-defined]
src/rezplugins/release_vcs/git.py:0: error: Name "git" is not defined [name-defined]
src/rezplugins/release_hook/emailer.py:0: error: Signature of "post_release" incompatible with supertype "ReleaseHook" [override]
src/rezplugins/release_hook/emailer.py:0: note: Superclass:
src/rezplugins/release_hook/emailer.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., previous_revision: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/emailer.py:0: note: Subclass:
src/rezplugins/release_hook/emailer.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: error: Signature of "pre_build" incompatible with supertype "ReleaseHook" [override]
src/rezplugins/release_hook/command.py:0: note: Superclass:
src/rezplugins/release_hook/command.py:0: note: def pre_build(self, user: Any, install_path: Any, variants: Any = ..., release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., previous_revision: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: note: Subclass:
src/rezplugins/release_hook/command.py:0: note: def pre_build(self, user: Any, install_path: Any, variants: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: error: Signature of "pre_release" incompatible with supertype "ReleaseHook" [override]
src/rezplugins/release_hook/command.py:0: note: Superclass:
src/rezplugins/release_hook/command.py:0: note: def pre_release(self, user: Any, install_path: Any, variants: Any = ..., release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., previous_revision: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: note: Subclass:
src/rezplugins/release_hook/command.py:0: note: def pre_release(self, user: Any, install_path: Any, variants: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: error: Signature of "post_release" incompatible with supertype "ReleaseHook" [override]
src/rezplugins/release_hook/command.py:0: note: Superclass:
src/rezplugins/release_hook/command.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., previous_revision: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: note: Subclass:
src/rezplugins/release_hook/command.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, **kwargs: Any) -> Any
src/rezplugins/release_hook/command.py:0: error: Argument 1 to "append" of "list" has incompatible type "dict[Any, Any]"; expected "int" [arg-type]
src/rezplugins/release_hook/amqp.py:0: error: Signature of "post_release" incompatible with supertype "ReleaseHook" [override]
src/rezplugins/release_hook/amqp.py:0: note: Superclass:
src/rezplugins/release_hook/amqp.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, release_message: Any = ..., changelog: Any = ..., previous_version: Any = ..., previous_revision: Any = ..., **kwargs: Any) -> Any
src/rezplugins/release_hook/amqp.py:0: note: Subclass:
src/rezplugins/release_hook/amqp.py:0: note: def post_release(self, user: Any, install_path: Any, variants: Any, **kwargs: Any) -> Any
src/rez/pip.py:0: error: Item "None" of "Variant | None" has no attribute "parent" [union-attr]
src/rez/build_system.py:0: error: Unsupported operand types for - ("set[type[BuildSystem]]" and "set[str | None]") [operator]
src/rez/cli/selftest.py:0: error: Argument 1 to "getfile" has incompatible type "FrameType | None"; expected Module | type[Any] | MethodType | FunctionType | TracebackType | FrameType | CodeType | Callable[..., Any] [arg-type]
src/rez/cli/selftest.py:0: error: Missing positional argument "path" in call to "find_module" of "MetaPathFinder" [call-arg]
src/rez/cli/selftest.py:0: error: Item "None" of "Loader | None" has no attribute "load_module" [union-attr]
src/rez/cli/selftest.py:0: error: Item "MetaPathFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "find_module" [union-attr]
src/rez/cli/selftest.py:0: error: Item "PathEntryFinderProtocol" of "MetaPathFinderProtocol | PathEntryFinderProtocol" has no attribute "find_module" [union-attr]
src/rez/cli/interpret.py:0: error: Incompatible types in assignment (expression has type "Python", variable has type "Shell") [assignment]
src/rez/cli/help.py:0: error: Item "None" of "Package | None" has no attribute "uri" [union-attr]
src/rez/cli/help.py:0: error: Item "None" of "Package | None" has no attribute "description" [union-attr]
Expand Down

0 comments on commit 99fd059

Please sign in to comment.