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

Axelrod-Python / Axelrod / 5035
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v4.9.1
DEFAULT BRANCH: master
Ran 11 May 2018 06:26PM UTC
Jobs 2
Files 170
Run time 5min
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
5035

push

travis-ci

drvinceknight
Fix type hints for mypy 2.1

Closes #1176

Various things I've needed to do:

- In a number of places include that the type is `Optional[]`.
- In a number of places include an `assert` so that `mypy` knows that
  the type is no longer None.
- I have made a minor refactor to the Moran process, I could have used
  asserts but this actually pointed out a spot where I believe the tests
  were incorrect: we were testing a specific situation where
  `MoranProcess.birth` or `MoranProcess.death` should have been called with
  default `index=None` but was actually being tested with `index=0`.
- **I have ignored** a type hint check in `fingerprint.py`: I was
  completely unable to get this one happy

To ensure that any new PRs don't break CI let's merge this under bug fix.

26 of 26 new or added lines in 8 files covered. (100.0%)

15412 of 15412 relevant lines covered (100.0%)

2.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5035.1 11 May 2018 06:26PM UTC 0
100.0
Travis Job 5035.1
2 5035.2 11 May 2018 06:31PM UTC 0
100.0
Travis Job 5035.2
Source Files on build 5035
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #5035
  • beee0f63 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

© 2025 Coveralls, Inc