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

malcolmgreaves / pywise / 77
95%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2020 04:33AM UTC
Jobs 2
Files 6
Run time 16s
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
77

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`.

80 of 80 new or added lines in 3 files covered. (100.0%)

311 of 348 relevant lines covered (89.37%)

1.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 77.1 09 Sep 2020 04:33AM UTC 0
89.37
Travis Job 77.1
2 77.2 09 Sep 2020 04:33AM UTC 0
89.37
Travis Job 77.2
Source Files on build 77
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #77
  • b7c791cc on github
  • Prev Build on main (#42)
  • Next Build on main (#87)
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