-
Notifications
You must be signed in to change notification settings - Fork 76
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: lovasoa/marshmallow_dataclass
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.6.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: lovasoa/marshmallow_dataclass
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.6.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 5 commits
- 8 files changed
- 4 contributors
Commits on Sep 17, 2023
-
Do not ignore Union argument ordering in tests (#248)
* Revert "Ignore union ordering" This reverts commit b61cd50. * test: mark expected failure, add separate test of its non-failing bits * ci(tests): report skipped/xfailed tests * docs(test): add link for context Co-authored-by: Ophir LOJKINE <contact@ophir.dev> --------- Co-authored-by: Ophir LOJKINE <contact@ophir.dev>
Configuration menu - View commit details
-
Copy full SHA for f315d71 - Browse repository at this point
Copy the full SHA f315d71View commit details
Commits on Sep 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d6396c1 - Browse repository at this point
Copy the full SHA d6396c1View commit details
Commits on Mar 20, 2024
-
* Test for memory leaks as described in #198 * Possible fix for #198: memory leak * Optimization: avoid holding frame reference when locals == globals * Get caller frame at decoration-time Here we are more careful about which caller's locals we use to resolve forward type references. We want the callers locals at decoration-time — not at decorator-construction time. Consider: ```py frozen_dataclass = marshmallow_dataclass.dataclass(frozen=True) def f(): @custom_dataclass class A: b: "B" @custom_dataclass class B: x: int ``` The locals we want in this case are the one from where the custom_dataclass decorator is called, not from where marshmallow_dataclass.dataclass is called. * Add ability to pass explicit localns (and globalns) to class_schema When class_schema is called, it doesn't need the caller's whole stack frame. What it really wants is a `localns` to pass to `typing.get_type_hints` to be used to resolve type references. Here we add the ability to pass an explicit `localns` parameter to `class_schema`. We also add the ability to pass an explicit `globalns`, because ... might as well — it might come in useful. (Since we need these only to pass to `get_type_hints`, we might as well match `get_type_hints` API as closely as possible.) * test: check for frame leakage when decorators throw exceptions * Fix mypy by setting python to the minimum supported version, 3.8 --------- Co-authored-by: Jeff Dairiki <dairiki@dairiki.org>
Configuration menu - View commit details
-
Copy full SHA for 9668980 - Browse repository at this point
Copy the full SHA 9668980View commit details -
Configuration menu - View commit details
-
Copy full SHA for a60cea0 - Browse repository at this point
Copy the full SHA a60cea0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c59cdb5 - Browse repository at this point
Copy the full SHA c59cdb5View commit details
There are no files selected for viewing