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

pytype errors #57

Open
iwamot opened this issue Sep 11, 2023 · 1 comment
Open

pytype errors #57

iwamot opened this issue Sep 11, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@iwamot
Copy link
Contributor

iwamot commented Sep 11, 2023

./validate.sh will produce the following errors.

File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 476, in show_summarize_option_modal: No attribute 'get' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 598, in ack_summarize_options_modal_submission: No attribute 'get' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 651, in prepare_and_share_thread_summary: No attribute 'get' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 786, in ack_proofreading_modal_submission: No attribute 'split' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 817, in display_proofreading_result: No attribute 'split' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 860, in display_proofreading_result: Name 'text' is not defined [name-error]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 882, in display_proofreading_result: Name 'text' is not defined [name-error]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 934, in ack_chat_from_scratch_modal_submission: No attribute 'split' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 964, in display_chat_from_scratch_result: No attribute 'split' on None [attribute-error]
  In Optional[Any]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 1003, in display_chat_from_scratch_result: Name 'text' is not defined [name-error]
File "/path/to/ChatGPT-in-Slack/app/bolt_listeners.py", line 1023, in display_chat_from_scratch_result: Name 'text' is not defined [name-error]
@seratch
Copy link
Owner

seratch commented Sep 11, 2023

Hi @iwamot, this project has been using a specific version of pytype and the old version does not tell these errors: https://github.com/seratch/ChatGPT-in-Slack/blob/main/.github/workflows/pytype.yml Probably, you're running the latest version and it may pinpoint these. If you're inteterested in resolving them, I am happy to merge the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants