Skip to content

fix: correct typos in source and tests - #930

Open
TheGreatApollyon wants to merge 1 commit into
hugapi:developfrom
TheGreatApollyon:fix/typos
Open

fix: correct typos in source and tests#930
TheGreatApollyon wants to merge 1 commit into
hugapi:developfrom
TheGreatApollyon:fix/typos

Conversation

@TheGreatApollyon

Copy link
Copy Markdown

Fixes several typos across the codebase:

  • proccessprocess (test_decorators.py)
  • EXISTANCEEXISTENCE (test_decorators.py)
  • wetherwhether (test_routing.py)
  • collectoncollection (hug/store.py)
  • occuredoccurred (hug/use.py)
  • fucntionfunction (hug/routing.py)

- 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)
Copilot AI review requested due to automatic review settings July 31, 2026 06:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread hug/use.py
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"})
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 this pull request may close these issues.

2 participants