Skip to content

Add Generic dataclasses #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bc46a23
support generic dataclasses
onursatici Jan 11, 2022
db32163
support nested generic dataclasses
onursatici Nov 28, 2022
8b82276
add test for repeated fields, fix __name__ attr for py<3.10
onursatici Dec 9, 2022
f2734cc
support py3.6
onursatici Dec 15, 2022
9a5dc09
Split generic tests into it's own file.
mvanderlee Mar 10, 2024
8443336
Add support for deep generics with swapped TypeVars.
mvanderlee Mar 11, 2024
8a0f837
Fix tests after rebase
mvanderlee Jun 24, 2024
f484596
Remove unnecessary whitespace
mvanderlee Jun 24, 2024
80dab91
fix call correct _field_for_schema function
mvanderlee Jun 24, 2024
4531c35
Break generic functions out into it's own file and add support for an…
mvanderlee Jun 25, 2024
dd34efc
Remove support for callable annotations
mvanderlee Jun 26, 2024
7ac088d
Remove support for annotated partials
mvanderlee Jun 26, 2024
b3362ba
Fix import style and some docstrings, and reuse is_generic_alias inst…
mvanderlee Jun 27, 2024
db95e64
Rename function to be more descriptive
mvanderlee Jun 27, 2024
a494984
Improved doc string
mvanderlee Jun 27, 2024
78fcd4a
Clean up
mvanderlee Jun 27, 2024
8797b2b
Rename our `is_generic_type` and only utilize where absolutely necessary
mvanderlee Jun 27, 2024
c361f3a
Clean up unnessary if statements and redundant function call
mvanderlee Sep 28, 2024
c3f5da1
Add support for TypeVar defaults
mvanderlee Sep 29, 2024
231b3b2
fix: Use Union compatible with <3.10
mvanderlee Sep 29, 2024
2ef5a71
Add python 3.13
mvanderlee Nov 30, 2024
fc66fc9
:bug: support py3.9 native collection types with generics. i.e.: list[T]
mvanderlee Feb 1, 2025
740fa49
:bug: fix mypy type issue
mvanderlee Feb 1, 2025
4e0f214
:bug: Generics did not work when schema was retrieved a second time.
mvanderlee Feb 1, 2025
b47f754
:bug: Ensure that Generic.Schema always throws a TypeError
mvanderlee Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.10"]

runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: flake8
additional_dependencies: ['flake8-bugbear==22.10.27']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: [typeguard,marshmallow]
Expand Down
Loading