Repository navigation
Conversation
…thon syntax and consistency
…tax for better readability
… syntax and collections imports
…dern Python syntax
…optional handling
…collections.abc imports
…ity and modern Python syntax
…nd remove unused imports
… modern Python syntax
…ern Python syntax
…dern Python syntax
…odern Python syntax
… clarity and validation
… for better readability
…e assertion structure
…id unused warning
…r web routes testing
…testing capabilities
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.
📝 Summary
This PR modernizes the codebase by adopting Python 3.10+ type hinting syntax (PEP 585 and PEP 604) across all modules, replacing legacy
typinggenerics withbuilt-in collections. It also updates project metadata to reflect new repository URLs and migrates the testing suite from
httpxtohttpx2.🛠 Type of Change
🔍 Key Changes
List,Dict,Tuple,Union, andOptionalwith modern alternatives likelist,dict,tuple, and the|operator across the entire repository.
httpxtohttxt2inpyproject.tomland updated all corresponding test implementations.app.pyandweb.pyto catch specific error types (e.g.,json.JSONDecodeError,OSError)instead of broad
Exceptioncatches, improving debuggability.Annotatedfor definingFormparameters in the web application to align with modern FastAPI best practices.README.md,CITATION.cff, and static HTML assets to reflect the updated user handle..gitignorefile covering Python, Jupyter, and ML-related artifacts (models, datasets, etc.).🧪 How Has This Been Tested?
pytest.tests/test_app_helpers.pyandtests/test_web_routes.pycorrectly utilize the newhttpx2client.