• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

malcolmgreaves / pywise / 86
89%
main: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/certifi-2024.7.4
DEFAULT BRANCH: main
Ran 09 Sep 2020 06:23AM UTC
Jobs 2
Files 6
Run time 33s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
86

push

travis-ci

web-flow
Enable deserialization support for dataclasses with generic types (#5)

Upgrades `deserialize` (and `serialize`) to handle @dataclass types parameterized with generics. Under the hood, the new `_align_generic_concrete`, `_fill`, and `_exec` functions in the `serialization` module handle reifying the parameterized type information at runtime. These new functions modify `_dataclass_field_types` to properly support "filling-in" the generic "holes" and output fully specified types. Extensive tests have been added to explicitly test deserialization from generic @dataclass types, including a very deeply nested example.

Note that it's not possible to support generics in `NamedTuple` deriving types. I.e. if given `class X(NamedTuple,Generic[T]):...` then `X[int]` is an invalid expression in Python. Since such expressions cannot be used, it's not possible to parametrize the generic types and thus it is not possible to gather reified type information at runtime.

This is a major API change: pre `1.x.x` rules dictate a minor version bump to `0.3.0`.

311 of 348 relevant lines covered (89.37%)

1.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 86.1 09 Sep 2020 06:23AM UTC 0
89.37
Travis Job 86.1
2 86.2 09 Sep 2020 06:23AM UTC 0
89.37
Travis Job 86.2
Source Files on build 86
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #86
  • b7c791cc on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc