Skip to content

add mypy type hints to all non-test code + update mypy config #275

add mypy type hints to all non-test code + update mypy config

add mypy type hints to all non-test code + update mypy config #275

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*' failed Oct 17, 2023 in 0s

9 tests run, 0 passed, 0 skipped, 9 failed.

Annotations

Check failure on line 12 in tests/test_deprecation_utils.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_deprecation_utils.tests.test_deprecation_utils

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/test_deprecation_utils.py:12: in <module>
    from flask_rebar.utils.deprecation import deprecated, deprecated_parameters
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 20 in tests/test_errors.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_errors.tests.test_errors

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/test_errors.py:20: in <module>
    from flask_rebar import messages, validation, response, Rebar
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 19 in tests/test_rebar.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_rebar.tests.test_rebar

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/test_rebar.py:19: in <module>
    from flask_rebar import messages
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 16 in tests/test_request_utils.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_request_utils.tests.test_request_utils

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/test_request_utils.py:16: in <module>
    from flask_rebar import validation, response, marshal
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 21 in tests/test_validation.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_validation.tests.test_validation

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/test_validation.py:21: in <module>
    from flask_rebar import compat
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 12 in tests/swagger_generation/test_generator_utils.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_generator_utils.tests.swagger_generation.test_generator_utils

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/swagger_generation/test_generator_utils.py:12: in <module>
    from flask_rebar.swagger_generation.generator_utils import PathArgument
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 19 in tests/swagger_generation/test_marshmallow_to_swagger.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_marshmallow_to_swagger.tests.swagger_generation.test_marshmallow_to_swagger

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/swagger_generation/test_marshmallow_to_swagger.py:19: in <module>
    from flask_rebar.swagger_generation.marshmallow_to_swagger import ALL_CONVERTERS
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 15 in tests/swagger_generation/test_swagger_generator.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_swagger_generator.tests.swagger_generation.test_swagger_generator

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/swagger_generation/test_swagger_generator.py:15: in <module>
    from flask_rebar.rebar import Rebar
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable

Check failure on line 12 in tests/swagger_generation/test_swagger_generator_hidden_api.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Report python3.8 marshmallow==3.18.* flask=='2.0.*' werkzeug=='2.0.*'

test_swagger_generator_hidden_api.tests.swagger_generation.test_swagger_generator_hidden_api

collection failure
Raw output
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:178: in exec_module
    exec(co, module.__dict__)
tests/swagger_generation/test_swagger_generator_hidden_api.py:12: in <module>
    from flask_rebar.testing import validate_swagger
flask_rebar/__init__.py:1: in <module>
    from flask_rebar.utils.request_utils import marshal, response
flask_rebar/utils/request_utils.py:20: in <module>
    from flask_rebar import compat
flask_rebar/compat.py:10: in <module>
    from flask_rebar.validation import filter_dump_only, RequireOnDumpMixin
flask_rebar/validation.py:22: in <module>
    schema: Schema, data: Union[Mapping[str, Any], List[Mapping[str, Any]]]
E   TypeError: 'ABCMeta' object is not subscriptable