You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the PR, LGTM but the CI is failing: you need to run black on your changes + there seems to be a Semantic PR check as well which I'm not completely aware of
Command run mypy is failing like below. Weird. :-(
slowapi/util.py:10: error: Item "None" of "Optional[Address]" has no attribute "host"
mypy is telling you that request.client is of type Optional[Address] so it can be None, in which case there is no attribute host on it (the last part of your line).
It looks like it's not smart enough to figure out the logic you wrote. You have 2 options (at least):
change your code to a plain if ...
silence mypy with a # type: ignore comment at the end of the line.
I run command poetry run mypy ., but this error is annoying me somewhat. Do you still have any idea what I am facing?
error: Positional-only parameters are only supported in Python 3.8 and greater
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests passing, removed repeated code.