Skip to content

Type checking changes#16

Merged
ArachnidAbby merged 6 commits into
stagingfrom
type-checking-changes
Jul 19, 2026
Merged

Type checking changes#16
ArachnidAbby merged 6 commits into
stagingfrom
type-checking-changes

Conversation

@ArachnidAbby

@ArachnidAbby ArachnidAbby commented Jul 19, 2026

Copy link
Copy Markdown
Member

Description

Various small type checking changes + a few bug fixes.

so far it brings us from 67 type warnings in the IDE to 29.

Changes

  • Properly change the class-constants when creating instances of _ConfigSpecMeta. This was a major oversight only non-problematic because you would typically only have 1 config class at a time.
  • Add autoloaded class decorator to lie to type checkers that refuse to cooperate with this library's shenanigans
  • Add create_file option/flag for ConfigSpec.load()
  • Add ConfigSectionMeta for better typing and checking of section classes.
  • Remove _ConfigSpecABCMeta (No longer needed since ConfigSectionMeta now inherits from ABCMeta on its own)
  • Change type annotations to be more accurate/exact in a few places within the spec.

@read-the-docs-community

read-the-docs-community Bot commented Jul 19, 2026

Copy link
Copy Markdown

Documentation build overview

📚 ComprehensiveConfig | 🛠️ Build #33651341 | 📁 Comparing 5b82939 against latest (db50d1f)

  🔍 Preview build  

5 files changed · + 1 added · ± 4 modified

+ Added

± Modified

@ArachnidAbby
ArachnidAbby merged commit 4fa4fee into staging Jul 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant