-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
fix linting with mypy + precommit? #10945
Conversation
@@ -113,11 +113,11 @@ def tokenizer(self) -> Callable[[str], List[Any]]: | |||
"""Get the tokenizer.""" | |||
import llama_index.core | |||
|
|||
if llama_index.global_tokenizer is None: | |||
if llama_index.core.global_tokenizer is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could've sworn we've fixed this before. I remember doing search for global_tokenizer specifically. Maybe got overwritten?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might have gotten overwritten at some point lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lots of moving parts lately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol yah that's for sure. Oh well -- we do our best!
The current pre-commit config was missing errors in mypy (I purposely tried to make typing errors, and they weren't detected)
From my local testing, this seems to have fixed the issue (and also identified some issues in core!)