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

zigpy / zigpy / 1178
100%

Build:
DEFAULT BRANCH: dev
Ran 21 Jul 2020 09:09PM UTC
Jobs 3
Files 39
Run time 19s
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
1178

push

travis-ci

web-flow
Rewrite `t.Struct` to use type annotations (#440)

* Rewrite `Struct` to use type annotations instead of the `_fields` list.
Makes `__init__` work as you'd expect with positional and keyword args.

* Revert unnecessary style changes
* Fix `FileImage` after reverting style changes
* Test serialization after setting an attribute
* Bring coverage back to 100%
* Further test mixed `*args` and `**kwargs` in `t.Struct.__init__`
* Fully implement and test `t.Struct` with field skipping
* Relax object creation restrictions to make all unit tests pass untouched
* Test struct attribute assignment as well as the `replace` method
* Fix and test some serialization corner cases
* Increase test coverage and fix bug with empty skipped fields
* Remove unnecessary typing.Union test case
* Fix a few more struct corner cases with equality and `t.Optional`
* Rename `StructField.skip_if` to `StructField.requires`
* Reorganize `struct` to improve clarity
* Properly handle struct subclassing
* Fix missed old-style structs and explicitly check for them in the future
* Bring coverage back to 100% by actually testing conflicting types
* Add type annotations

5011 of 5012 relevant lines covered (99.98%)

2.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1178.1 (TOXENV=lint) 21 Jul 2020 09:09PM UTC 0
0.0
Travis Job 1178.1
2 1178.2 (TOXENV=py37) 21 Jul 2020 09:09PM UTC 0
99.98
Travis Job 1178.2
3 1178.3 (TOXENV=py38) 21 Jul 2020 09:09PM UTC 0
99.98
Travis Job 1178.3
Source Files on build 1178
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1178
  • 41986610 on github
  • Prev Build on dev (#1167)
  • Next Build on dev (#1185)
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