Skip to content

Assorted improvements - #60

Merged
jcrist merged 4 commits into
masterfrom
prep-for-release
Feb 8, 2022
Merged

Assorted improvements#60
jcrist merged 4 commits into
masterfrom
prep-for-release

Conversation

@jcrist

@jcrist jcrist commented Feb 8, 2022

Copy link
Copy Markdown
Member
  • A few typo fixes
  • Rename immutable -> frozen for better compatibility with other dataclass-like classes
  • Use __dataclass_transform__ to catch more code errors in pyright.

While I like "immutable" better, `frozen` is used by
dataclasses/attrs/pydantic, and is a hardcoded parameter name in the new
"dataclass_transform" for pyright. Better to stick to convention.
- Add exception types
- Add `__version__` string
- Move `_core.pyi` to `__init__.pyi` to better keep `_core` an
implementation detail.
Uses `__dataclass_transform__` for better pyright integration. Still
need a mypy plugin to catch `__init__` errors in mypy.
@jcrist
jcrist merged commit 40e5910 into master Feb 8, 2022
@jcrist
jcrist deleted the prep-for-release branch February 8, 2022 15:38
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