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

omry / omegaconf / c7c2f4c5-55b9-48e9-9cf4-6dedde373c02
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 27 Apr 2026 01:57AM UTC
Jobs 1
Files 19
Run time 1min
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

27 Apr 2026 01:56AM UTC coverage: 100.0%. Remained the same
c7c2f4c5-55b9-48e9-9cf4-6dedde373c02

push

circleci

omry
Add support for typing.Literal annotations

Supersedes #1228

Implements LiteralNode to support Literal type hints as an alternative
to Enum in structured configs. Validates value and type equality using
type identity (not isinstance) to keep bool and int distinct.

- Add LiteralNode class with validation for Literal types
- Support Literal inside containers: List[Literal[...]], Dict[K, Literal[...]]
- Fix ordering bug where Literal[1, True] would incorrectly reject True
  depending on element position, by replacing the two-pass check with a
  single-pass type-and-value loop
- Add test data classes (LiteralConfig, LiteralContainers) for dataclasses and attrs
- Add tests for validation, equality (including cross-ref_type and cross-type),
  bool/int cross-matching, and YAML round-trip
- Document Literal types in structured_config.rst

Fixes #422
Closes #865

Co-Authored-By: jordan-schneider <jordan-schneider@users.noreply.github.com>
Co-Authored-By: rachtsingh <rachtsingh@users.noreply.github.com>
Co-Authored-By: Omry Yadan <omry@yadan.net>

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

3569 of 3569 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 c7c2f4c5-55b9-48e9-9cf4-6dedde373c02.1 27 Apr 2026 01:57AM UTC 19
100.0
CircleCI Job
Source Files on build c7c2f4c5-55b9-48e9-9cf4-6dedde373c02
  • Tree
  • List 19
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #C7C2F4C5...
  • 2148ad7f on github
  • Prev Build on main (#56160037...)
  • Next Build on main (#772B0A07...)
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