-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update Mypy to 1.11.2 and fix new signature override errors #18811
Commits on Sep 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb0e3ed - Browse repository at this point
Copy the full SHA cb0e3edView commit details -
Remove declarative mapping from imperatively mapped `LibraryDatasetDa…
…tasetAssociation` class See galaxyproject#18773 (review)
Configuration menu - View commit details
-
Copy full SHA for f6c6a37 - Browse repository at this point
Copy the full SHA f6c6a37View commit details -
Fix signature override of
GenomeFilterMixin._add_parsers()
methodFix the following mypy 1.11 error: ``` lib/galaxy/managers/history_contents.py:638: error: Signature of "_add_parsers" incompatible with supertype "GenomeFilterMixin" [override] def _add_parsers(self): ^ lib/galaxy/managers/history_contents.py:638: note: Superclass: lib/galaxy/managers/history_contents.py:638: note: def _add_parsers(self, database_connection: str) -> Any lib/galaxy/managers/history_contents.py:638: note: Subclass: lib/galaxy/managers/history_contents.py:638: note: def _add_parsers(self) -> Any ```
Configuration menu - View commit details
-
Copy full SHA for 440fbd6 - Browse repository at this point
Copy the full SHA 440fbd6View commit details -
Fix signature override of
DatasetAssociationSerializer.serialize()
……method Fix the following mypy 1.11 errors: ``` lib/galaxy/managers/hdas.py:616: error: Signature of "serialize" incompatible with supertype "DatasetAssociationSerializer" [override] def serialize(self, hda, keys, user=None, **context): ^ lib/galaxy/managers/hdas.py:616: note: Superclass: lib/galaxy/managers/hdas.py:616: note: def serialize(self, item: Any, keys: Any, **context: Any) -> Any lib/galaxy/managers/hdas.py:616: note: Subclass: lib/galaxy/managers/hdas.py:616: note: def serialize(self, hda: Any, keys: Any, user: Any = ..., **context: Any) -> Any lib/galaxy/managers/hdas.py:616: error: Signature of "serialize" incompatible with supertype "ModelSerializer" [override] def serialize(self, hda, keys, user=None, **context): ^ lib/galaxy/managers/hdas.py:616: note: Superclass: lib/galaxy/managers/hdas.py:616: note: def serialize(self, item: Any, keys: Any, **context: Any) -> Any lib/galaxy/managers/hdas.py:616: note: Subclass: lib/galaxy/managers/hdas.py:616: note: def serialize(self, hda: Any, keys: Any, user: Any = ..., **context: Any) -> Any ```
Configuration menu - View commit details
-
Copy full SHA for ed336d8 - Browse repository at this point
Copy the full SHA ed336d8View commit details -
Fix signature override of
DatabaseOperationTool.produce_outputs()
m……ethod Fix the following mypy 1.11 errors: ``` lib/galaxy/tools/__init__.py:3989: error: Signature of "produce_outputs" incompatible with supertype "DatabaseOperationTool" [override] def produce_outputs(self, trans, out_data, output_collections, inc... ^ lib/galaxy/tools/__init__.py:3989: note: Superclass: lib/galaxy/tools/__init__.py:3989: note: def produce_outputs(self, trans: Any, out_data: Any, output_collections: Any, incoming: Any, history: Any, **kwds: Any) -> Any lib/galaxy/tools/__init__.py:3989: note: Subclass: lib/galaxy/tools/__init__.py:3989: note: def produce_outputs(self, trans: Any, out_data: Any, output_collections: Any, incoming: Any, history: Any, tag_handler: Any, **kwds: Any) -> Any lib/galaxy/tools/__init__.py:4026: error: Signature of "produce_outputs" incompatible with supertype "DatabaseOperationTool" [override] def produce_outputs(self, trans, out_data, output_collections, inc... ^ lib/galaxy/tools/__init__.py:4026: note: Superclass: lib/galaxy/tools/__init__.py:4026: note: def produce_outputs(self, trans: Any, out_data: Any, output_collections: Any, incoming: Any, history: Any, **kwds: Any) -> Any lib/galaxy/tools/__init__.py:4026: note: Subclass: lib/galaxy/tools/__init__.py:4026: note: def produce_outputs(self, trans: Any, out_data: Any, output_collections: Any, incoming: Any, history: Any, tag_handler: Any, **kwds: Any) -> Any ```
Configuration menu - View commit details
-
Copy full SHA for fd5ca34 - Browse repository at this point
Copy the full SHA fd5ca34View commit details -
Fix signature override of
WorkflowModule.save_to_step()
methodFix the following mypy 1.11 errors: ``` lib/galaxy/workflow/modules.py:650: error: Signature of "save_to_step" incompatible with supertype "WorkflowModule" [override] def save_to_step(self, step, **kwd): ^ lib/galaxy/workflow/modules.py:650: note: Superclass: lib/galaxy/workflow/modules.py:650: note: def save_to_step(self, step: Any, detached: Any = ...) -> Any lib/galaxy/workflow/modules.py:650: note: Subclass: lib/galaxy/workflow/modules.py:650: note: def save_to_step(self, step: Any, **kwd: Any) -> Any lib/galaxy/workflow/modules.py:1030: error: Signature of "save_to_step" incompatible with supertype "WorkflowModule" [override] def save_to_step(self, step, **kwd): ^ lib/galaxy/workflow/modules.py:1030: note: Superclass: lib/galaxy/workflow/modules.py:1030: note: def save_to_step(self, step: Any, detached: Any = ...) -> Any lib/galaxy/workflow/modules.py:1030: note: Subclass: lib/galaxy/workflow/modules.py:1030: note: def save_to_step(self, step: Any, **kwd: Any) -> Any lib/galaxy/workflow/modules.py:1680: error: Signature of "save_to_step" incompatible with supertype "WorkflowModule" [override] def save_to_step(self, step, **kwd): ^ lib/galaxy/workflow/modules.py:1680: note: Superclass: lib/galaxy/workflow/modules.py:1680: note: def save_to_step(self, step: Any, detached: Any = ...) -> Any lib/galaxy/workflow/modules.py:1680: note: Subclass: lib/galaxy/workflow/modules.py:1680: note: def save_to_step(self, step: Any, **kwd: Any) -> Any ```
Configuration menu - View commit details
-
Copy full SHA for 0b4fee5 - Browse repository at this point
Copy the full SHA 0b4fee5View commit details -
Fix signature override of
Tool.exec_after_process()
methodFix the following mypy 1.11 error: ``` lib/galaxy/tools/__init__.py:3212: error: Signature of "exec_after_process" incompatible with supertype "Tool" [override] def exec_after_process(self, app, inp_data, out_data, param_dict, ... ^ lib/galaxy/tools/__init__.py:3212: note: Superclass: lib/galaxy/tools/__init__.py:3212: note: def exec_after_process(self, app: Any, inp_data: Any, out_data: Any, param_dict: Any, job: Any = ..., **kwds: Any) -> Any lib/galaxy/tools/__init__.py:3212: note: Subclass: lib/galaxy/tools/__init__.py:3212: note: def exec_after_process(self, app: Any, inp_data: Any, out_data: Any, param_dict: Any, job: Any, final_job_state: Any = ..., **kwds: Any) -> Any ``` Also: - Add some type annotions - Small refactorings
Configuration menu - View commit details
-
Copy full SHA for 7154daf - Browse repository at this point
Copy the full SHA 7154dafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f8260d - Browse repository at this point
Copy the full SHA 1f8260dView commit details