Skip to content

Add missing return type hints, fix taxonomy tests, bump min Python to 3.9#28

Merged
richarda23 merged 1 commit into
mainfrom
fix/type-hints-and-cleanup
Mar 8, 2026
Merged

Add missing return type hints, fix taxonomy tests, bump min Python to 3.9#28
richarda23 merged 1 commit into
mainfrom
fix/type-hints-and-cleanup

Conversation

@richarda23

Copy link
Copy Markdown
Owner

Summary

  • Return type hints — added missing -> str, -> list, -> None annotations to all provider methods that lacked them
  • Taxonomy tests — replaced tautological assertions (o.english == o.english) with real ones that verify returned values are members of the expected data sets
  • Python version — bumped pyproject.toml minimum from ^3.8 to ^3.9 to match the CI test matrix

Test plan

  • All 34 tests pass: poetry run python -m pytest faker_biology/tests/

🤖 Generated with Claude Code

… 3.9

- Add return type annotations to all provider methods missing them
- Replace tautological assertions in test_taxonomy with meaningful ones
- Update pyproject.toml minimum Python version from 3.8 to 3.9 to match CI matrix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@richarda23
richarda23 merged commit 0d4bb11 into main Mar 8, 2026
0 of 5 checks passed
@richarda23 richarda23 mentioned this pull request Mar 8, 2026
1 task
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