mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
fix mypy errors
This commit is contained in:
parent
fcf56ac93e
commit
3f10c04fd0
8 changed files with 92 additions and 76 deletions
|
|
@ -18,8 +18,8 @@ def test_calls_entrypoints_creates_plugins_automaticaly(entry_points_mck):
|
|||
"""Verify that we create Plugins on instantiation."""
|
||||
entry_points_mck.return_value = {
|
||||
'testing.entrypoints': [
|
||||
importlib_metadata.EntryPoint('T100', '', None),
|
||||
importlib_metadata.EntryPoint('T200', '', None),
|
||||
importlib_metadata.EntryPoint('T100', '', 'testing.entrypoints'),
|
||||
importlib_metadata.EntryPoint('T200', '', 'testing.entrypoints'),
|
||||
],
|
||||
}
|
||||
plugin_mgr = manager.PluginManager(namespace='testing.entrypoints')
|
||||
|
|
@ -36,8 +36,8 @@ def test_handles_mapping_functions_across_plugins(entry_points_mck):
|
|||
"""Verify we can use the PluginManager call functions on all plugins."""
|
||||
entry_points_mck.return_value = {
|
||||
'testing.entrypoints': [
|
||||
importlib_metadata.EntryPoint('T100', '', None),
|
||||
importlib_metadata.EntryPoint('T200', '', None),
|
||||
importlib_metadata.EntryPoint('T100', '', 'testing.entrypoints'),
|
||||
importlib_metadata.EntryPoint('T200', '', 'testing.entrypoints'),
|
||||
],
|
||||
}
|
||||
plugin_mgr = manager.PluginManager(namespace='testing.entrypoints')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue