-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'anna-money:main' into feature/generics
- Loading branch information
Showing
8 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ def read_version(): | |
long_description_content_type="text/markdown", | ||
platforms=["macOS", "POSIX", "Windows"], | ||
author="Yury Pliner", | ||
python_requires=">=3.10", | ||
python_requires=">=3.11", | ||
project_urls={}, | ||
url="https://github.com/Pliner/marshmallow-recipe", | ||
author_email="[email protected]", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import dataclasses | ||
|
||
import marshmallow_recipe as mr | ||
|
||
|
||
def test_order_1(): | ||
@dataclasses.dataclass | ||
class A: | ||
a: int | ||
b: int | ||
|
||
assert [name for name in mr.dump(A(a=1, b=2))] == ["a", "b"] | ||
|
||
|
||
def test_order_2(): | ||
@dataclasses.dataclass | ||
class A: | ||
b: int | ||
a: int | ||
|
||
assert [name for name in mr.dump(A(b=1, a=2))] == ["b", "a"] |