fix: correct typos in source and tests - #930
Open
TheGreatApollyon wants to merge 1 commit into
Open
Conversation
- proccess → process (test_decorators.py) - EXISTANCE → EXISTENCE (test_decorators.py) - wether → whether (test_routing.py) - collecton → collection (hug/store.py) - occured → occurred (hug/use.py) - fucntion → function (hug/routing.py)
There was a problem hiding this comment.
Pull request overview
This PR corrects several spelling/typo issues across Hug’s core modules and test suite to improve readability and consistency in strings, docstrings, and test identifiers.
Changes:
- Fixes typos in test docstrings and helper function names.
- Corrects typos in user-facing/error strings and module docstrings.
- Fixes a typo in a routing handler docstring.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_routing.py | Fixes “wether” → “whether” in test docstrings. |
| tests/test_decorators.py | Fixes middleware helper function names and a typo in a test path string. |
| hug/use.py | Fixes “occured” → “occurred” in raised error messages. |
| hug/store.py | Fixes “collecton” → “collection” in module docstring. |
| hug/routing.py | Fixes “fucntion” → “function” in a method docstring. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
158
to
160
| if 404 in self.raise_on: | ||
| raise requests.HTTPError("404 Not Found occured for url: {0}".format(url)) | ||
| raise requests.HTTPError("404 Not Found occurred for url: {0}".format(url)) | ||
| return Response("Not Found", 404, {"content-type", "application/json"}) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes several typos across the codebase:
proccess→process(test_decorators.py)EXISTANCE→EXISTENCE(test_decorators.py)wether→whether(test_routing.py)collecton→collection(hug/store.py)occured→occurred(hug/use.py)fucntion→function(hug/routing.py)