Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address existing mypy error (see note)
This is a (possible) bug that has existed on dev. To expose it, simply change this call to init_models_from_config (https://github.com/galaxyproject/galaxy/blob/release_21.09/lib/galaxy/config/__init__.py#L1302) to a call directly to mapping.init(). The result will be 6 mypy errors. The reason is that the mapping.init() method (https://github.com/galaxyproject/galaxy/blob/release_21.09/lib/galaxy/model/mapping.py#L79) specifies its return type as GalaxyModelMapping - which results in several errors of this type: lib/galaxy/app.py:178: error: Definition of "model" in base class "MinimalApp" is incompatible with definition in base class "ConfiguresGalaxyMixin" When we call an intermediary function (that does not have a return type specified), mypy is happy. This should be addressed in a separate issue/PR. Removing the return type is the simplest (temporary) solution.
- Loading branch information