Skip to content

Adds functionality for patch-based configuration #2925

Adds functionality for patch-based configuration

Adds functionality for patch-based configuration #2925

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / mypy failed Sep 25, 2023 in 0s

reviewdog [mypy] report

reported by reviewdog 🐶

Findings (2)

varats-core/varats/base/configuration.py|446 col 17| error: Argument 1 to "filter" has incompatible type "Callable[[Any], Any]"; expected "Callable[[ConfigurationOption], TypeGuard[object]]" [arg-type]
varats-core/varats/base/configuration.py|446 col 32| error: "object" has no attribute "name" [attr-defined]

Filtered Findings (80)

varats-core/varats/experiment/steps/patch.py|13 col 18| error: Class cannot subclass "ProjectStep" (has type "Any") [misc]
varats-core/varats/experiment/steps/patch.py|45 col 19| error: Class cannot subclass "ProjectStep" (has type "Any") [misc]
varats-core/varats/experiment/steps/patch.py|51 col 5| error: Function is missing a type annotation [no-untyped-def]
varats/varats/plot/plot_utils.py|108 col 28| error: Incompatible default for argument "ax" (default has type "None", argument has type "SubplotBase") [assignment]
varats/varats/plot/plot_utils.py|108 col 28| note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
varats/varats/plot/plot_utils.py|108 col 28| note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
varats/varats/plot/plot_utils.py|114 col 10| error: Incompatible types in assignment (expression has type "Union[SubplotBase, Axes]", variable has type "SubplotBase") [assignment]
varats/varats/plot/plot_utils.py|116 col 5| error: "SubplotBase" has no attribute "annotate" [attr-defined]
varats/varats/plot/plot_utils.py|119 col 18| error: "SubplotBase" has no attribute "transAxes" [attr-defined]
varats/varats/plot/plot_utils.py|124 col 5| error: "SubplotBase" has no attribute "annotate" [attr-defined]
varats/varats/plot/plot_utils.py|127 col 18| error: "SubplotBase" has no attribute "transAxes" [attr-defined]
varats/varats/plot/plot.py|129 col 9| error: Call to untyped function "show" in typed context [no-untyped-call]
varats/varats/tools/driver_table.py|47 col 10| error: Argument 1 to "pass_context" has incompatible type "Callable[[Arg(Context, 'context'), KwArg(Any)], None]"; expected "Callable[[Context, KwArg(Any)], None]" [arg-type]
varats/varats/tools/driver_table.py|47 col 10| note: This is likely because "command_template" has named arguments: "context". Consider marking them positional-only
varats/varats/tools/driver_table.py|86 col 2| error: Argument 1 to "pass_context" has incompatible type "Callable[[Arg(Context, 'context'), KwArg(Any)], None]"; expected "Callable[[Context, KwArg(Any)], None]" [arg-type]
varats/varats/tools/driver_table.py|86 col 2| note: This is likely because "main" has named arguments: "context". Consider marking them positional-only
varats/varats/tools/driver_plot.py|47 col 10| error: Argument 1 to "pass_context" has incompatible type "Callable[[Arg(Context, 'context'), KwArg(Any)], None]"; expected "Callable[[Context, KwArg(Any)], None]" [arg-type]
varats/varats/tools/driver_plot.py|47 col 10| note: This is likely because "command_template" has named arguments: "context". Consider marking them positional-only
varats/varats/tools/driver_plot.py|86 col 2| error: Argument 1 to "pass_context" has incompatible type "Callable[[Arg(Context, 'context'), KwArg(Any)], None]"; expected "Callable[[Context, KwArg(Any)], None]" [arg-type]
varats/varats/tools/driver_plot.py|86 col 2| note: This is likely because "main" has named arguments: "context". Consider marking them positional-only
varats/varats/plots/paper_config_overview.py|221 col 25| error: Argument "facecolor" to "Patch" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Optional[Union[Union[tuple[float, float, float], str], Union[str, tuple[float, float, float, float], tuple[Union[tuple[float, float, float], str], float], tuple[tuple[float, float, float, float], float]]]]" [arg-type]
varats/varats/plots/paper_config_overview.py|222 col 25| error: Argument "facecolor" to "Patch" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Optional[Union[Union[tuple[float, float, float], str], Union[str, tuple[float, float, float, float], tuple[Union[tuple[float, float, float], str], float], tuple[tuple[float, float, float, float], float]]]]" [arg-type]
varats/varats/plots/paper_config_overview.py|223 col 25| error: Argument "facecolor" to "Patch" has incompatible type "ndarray[Any, dtype[floating[_64Bit]]]"; expected "Optional[Union[Union[tuple[float, float, float], str], Union[str, tuple[float, float, float, float], tuple[Union[tuple[float, float, float], str], float], tuple[tuple[float, float, float, float], float]]]]" [arg-type]
varats/varats/tools/driver_casestudy.py|395 col 10| error: Argument 1 to "pass_context" has incompatible type "Callable[[Arg(Context, 'context'), KwArg(Any)], None]"; expected "Callable[[Context, KwArg(Any)], None]" [arg-type]
varats/varats/tools/driver_casestudy.py|395 col 10| note: This is likely because "command_template" has named arguments: "context". Consider marking them positional-only
varats/varats/plots/commit_report_plots.py|8 col 1| error: Module "matplotlib.backends.backend_qt5agg" does not explicitly export attribute "FigureCanvasQTAgg" [attr-defined]
varats/varats/plots/commit_report_plots.py|31 col 23| error: Call to untyped function "FigureCanvasQTAgg" in typed context [no-untyped-call]
varats/varats/plots/commit_report_plots.py|56 col 9| error: Call to untyped function "draw" in typed context [no-untyped-call]
varats/varats/plots/blame_lorenz_curve.py|59 col 5| error: "SubplotBase" has no attribute "plot" [attr-defined]
varats/varats/plots/blame_lorenz_curve.py|73 col 5| error: "SubplotBase" has no attribute "plot" [attr-defined]
varats/varats/plots/blame_lorenz_curve.py|109 col 9| error: Argument 1 to "draw_code_churn" has incompatible type "SubplotBase"; expected "Axes" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|177 col 13| error: Argument 1 to "draw_interaction_lorenz_curve" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|181 col 13| error: Argument 1 to "draw_perfect_lorenz_curve" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|184 col 37| error: Argument 1 to "draw_interaction_code_churn" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|188 col 13| error: Argument 1 to "draw_interaction_lorenz_curve" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|192 col 13| error: Argument 1 to "draw_perfect_lorenz_curve" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|196 col 13| error: Argument 1 to "draw_interaction_code_churn" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|297 col 5| error: "SubplotBase" has no attribute "plot" [attr-defined]
varats/varats/plots/blame_lorenz_curve.py|347 col 5| error: "SubplotBase" has no attribute "plot" [attr-defined]
varats/varats/plots/blame_lorenz_curve.py|395 col 13| error: Argument 1 to "draw_gini_blame_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|399 col 13| error: Argument 1 to "draw_gini_blame_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|403 col 13| error: Argument 1 to "draw_gini_blame_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|407 col 13| error: Argument 1 to "draw_gini_churn_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|411 col 13| error: Argument 1 to "draw_gini_churn_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|415 col 13| error: Argument 1 to "draw_gini_churn_over_time" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_lorenz_curve.py|422 col 37| error: Argument 1 to "draw_interaction_code_churn" has incompatible type "Axes"; expected "SubplotBase" [arg-type]
varats/varats/plots/blame_diff_correlation_matrix.py|57 col 28| error: Incompatible default for argument "ax" (default has type "None", argument has type "SubplotBase") [assignment]
varats/varats/plots/blame_diff_correlation_matrix.py|57 col 28| note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
varats/varats/plots/blame_diff_correlation_matrix.py|57 col 28| note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
varats/varats/plots/blame_diff_correlation_matrix.py|63 col 10| error: Incompatible types in assignment (expression has type "Union[SubplotBase, Axes]", variable has type "SubplotBase") [assignment]
varats/varats/plots/blame_diff_correlation_matrix.py|70 col 11| error: "SubplotBase" has no attribute "twinx" [attr-defined]
varats/varats/plots/blame_diff_correlation_matrix.py|94 col 14| error: Argument 1 to "pad_axes" has incompatible type "SubplotBase"; expected "Axes" [arg-type]
varats/varats/plots/blame_diff_correlation_matrix.py|96 col 17| error: Argument 1 to "align_yaxis" has incompatible type "SubplotBase"; expected "Axes" [arg-type]
varats/varats/plots/blame_diff_correlation_matrix.py|124 col 28| error: Incompatible default for argument "ax" (default has type "None", argument has type "SubplotBase") [assignment]
varats/varats/plots/blame_diff_correlation_matrix.py|124 col 28| note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
varats/varats/plots/blame_diff_correlation_matrix.py|124 col 28| note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
varats/varats/plots/blame_diff_correlation_matrix.py|128 col 10| error: Incompatible types in assignment (expression has type "Union[SubplotBase, Axes]", variable has type "SubplotBase") [assignment]
varats/varats/plots/blame_diff_correlation_matrix.py|133 col 11| error: "SubplotBase" has no attribute "twinx" [attr-defined]
varats/varats/plots/blame_diff_correlation_matrix.py|136 col 14| error: Argument 1 to "pad_axes" has incompatible type "SubplotBase"; expected "Axes" [arg-type]
varats/varats/plots/blame_diff_correlation_matrix.py|138 col 17| error: Argument 1 to "align_yaxis" has incompatible type "SubplotBase"; expected "Axes" [arg-type]
varats/varats/plots/blame_verifier_report_plots.py|226 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_xlim" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|226 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_xlim" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|227 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "grid" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|227 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "grid" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|228 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_xlabel" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|228 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_xlabel" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|229 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_ylabel" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|229 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "set_ylabel" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|230 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "yaxis" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|230 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "yaxis" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|247 col 9| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "plot" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|247 col 9| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "plot" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|254 col 5| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "title" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|254 col 5| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "title" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|254 col 5| error: Item "Axes" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "title" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|257 col 9| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "get_xticklabels" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|257 col 9| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "get_xticklabels" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|260 col 14| error: Item "ndarray[Any, Any]" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "legend" [union-attr]
varats/varats/plots/blame_verifier_report_plots.py|260 col 14| error: Item "SubplotBase" of "Union[ndarray[Any, Any], SubplotBase, Axes]" has no attribute "legend" [union-attr]
varats/varats/tools/driver_graph_view.py|35 col 17| error: Redundant cast to "StandardButtons" [redundant-cast]

Annotations

Check failure on line 446 in varats-core/varats/base/configuration.py

See this annotation in the file changed.

@github-actions github-actions / mypy

[mypy] varats-core/varats/base/configuration.py#L446

error: Argument 1 to "filter" has incompatible type "Callable[[Any], Any]"; expected "Callable[[ConfigurationOption], TypeGuard[object]]"  [arg-type]
Raw output
varats-core/varats/base/configuration.py:446:17: error: Argument 1 to "filter" has incompatible type "Callable[[Any], Any]"; expected "Callable[[ConfigurationOption], TypeGuard[object]]"  [arg-type]

Check failure on line 446 in varats-core/varats/base/configuration.py

See this annotation in the file changed.

@github-actions github-actions / mypy

[mypy] varats-core/varats/base/configuration.py#L446

error: "object" has no attribute "name"  [attr-defined]
Raw output
varats-core/varats/base/configuration.py:446:32: error: "object" has no attribute "name"  [attr-defined]