Skip to content

Commit 1c73603

Browse files
committed
Issue #289
1 parent 1d1527b commit 1c73603

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
license="MIT",
4747
long_description=long_description,
4848
url="http://github.com/loyada/typedpy",
49-
download_url="https://github.com/loyada/typedpy/archive/v2.28.2.tar.gz",
49+
download_url="https://github.com/loyada/typedpy/archive/v2.28.3.tar.gz",
5050
keywords=["testing", "type-safe", "strict", "schema", "validation"],
51-
version="2.28.2",
51+
version="2.28.3",
5252
)
5353

5454
# coverage run --source=typedpy/ setup.py test

typedpy/structures/structures.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,8 @@ class Foo(Structure):
14621462
k: getattr(self, k, None)
14631463
for k in self.get_all_fields_by_name()
14641464
if k not in ignore_props
1465-
and k not in getattr(self.__class__, "_constants", {})
14661465
and k not in kw
1466+
and k not in getattr(self.__class__, "_constants", {})
14671467
}
14681468

14691469
kwargs = {
@@ -1523,9 +1523,9 @@ def extract_attr(k):
15231523
k: extract_attr(k)
15241524
for k in cls.get_all_fields_by_name()
15251525
if k not in ignore_props
1526+
and k not in kw
15261527
and k not in getattr(cls, "_constants", {})
15271528
and (hasattr(source_object, k) or is_mapping)
1528-
and k not in kw
15291529
}
15301530
kwargs = {
15311531
**{k: v for k, v in args_from_model.items() if v is not Undefined},
@@ -1571,9 +1571,9 @@ def from_trusted_data(cls, source_object=None, *, ignore_props=None, **kw):
15711571
else getattr(source_object, k, None)
15721572
for k in cls.get_all_fields_by_name()
15731573
if k not in ignore_props
1574+
and k not in kw
15741575
and k not in getattr(cls, "_constants", {})
15751576
and (not is_mapping or k in source_object)
1576-
and k not in kw
15771577
}
15781578
kwargs = {
15791579
**{k: v for k, v in args_from_model.items() if v is not Undefined},

0 commit comments

Comments
 (0)