Skip to content
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

library doesn't work: TypeError: 'NoneType' object is not subscriptable #8

Open
dimit999 opened this issue Jun 29, 2020 · 0 comments · May be fixed by #10
Open

library doesn't work: TypeError: 'NoneType' object is not subscriptable #8

dimit999 opened this issue Jun 29, 2020 · 0 comments · May be fixed by #10

Comments

@dimit999
Copy link

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/flake8", line 11, in
load_entry_point('flake8==3.8.2', 'console_scripts', 'flake8')()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/main/cli.py", line 22, in main
app.run(argv)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/main/application.py", line 360, in run
self._run(argv)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/main/application.py", line 347, in _run
self.initialize(argv)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/main/application.py", line 329, in initialize
self.register_plugin_options()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/main/application.py", line 165, in register_plugin_options
self.check_plugins.register_options(self.option_manager)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/plugins/manager.py", line 494, in register_options
list(self.manager.map(register_and_enable))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/plugins/manager.py", line 302, in map
yield func(self.plugins[name], *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/plugins/manager.py", line 490, in register_and_enable
call_register_options(plugin)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/plugins/manager.py", line 402, in generated_function
return method(optmanager, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/plugins/manager.py", line 216, in register_options
add_options(optmanager)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8_filename/init.py", line 31, in add_options
parser.add_option(None, "--filename_check{}".format(num), **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flake8/options/manager.py", line 408, in add_option
self._current_group.add_argument(*option_args, **option_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 1354, in add_argument
kwargs = self._get_optional_kwargs(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/argparse.py", line 1484, in _get_optional_kwargs
if not option_string[0] in self.prefix_chars:
TypeError: 'NoneType' object is not subscriptable

@hunghoang-saritasa hunghoang-saritasa linked a pull request Dec 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant