Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

## [3.0.0] - 2025-05-16

### Changed
- Updated contribution guidelines.
- Updated CI workflow to run on Pull Request.
- Updated README.md to include more information and examples of code usage as well as corrected some old examples.
- Added contributors to the CONTRIBUTORS file.

### Deleted
- Removed `uuid` as a dependency.

### Added
- Added explanation about chaining API to README.md.
Expand Down Expand Up @@ -64,7 +72,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added base source code files for the project.
- Base `README.md` file.

[unreleased]: https://github.com/Naapperas/zon/compare/v2.0.1...HEAD
[Unreleased]: https://github.com/Naapperas/zon/compare/v3.0.0...HEAD
[3.0.0]: https://github.com/Naapperas/zon/compare/v2.0.1...v3.0.0
[2.0.1]: https://github.com/Naapperas/zon/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/Naapperas/zon/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/Naapperas/zon/compare/v1.0.0...v1.1.0
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Nuno Pereira <nunoafonso2002@gmail.com>
Nuno Pereira <nunoafonso2002@gmail.com>
cachho <admin@ch-webdev.com>
Almas Akchabayev <>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "zon"
version = "2.0.0"
version = "3.0.0"
authors = [
{ name="Nuno Pereira", email="nunoafonso2002@gmail.com" },
]
Expand Down
6 changes: 4 additions & 2 deletions zon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Why is this needed even?
from __future__ import annotations

__version__ = "2.0.0"
__version__ = "3.0.0"
__author__ = "Nuno Pereira"
__email__ = "nunoafonso2002@gmail.com"
__license__ = "MIT"
Expand Down Expand Up @@ -181,7 +181,9 @@ def _default_validate(self, data: T, ctx: ValidationContext) -> T:
)

@final
def _validate(self, data: T) -> tuple[Literal[True], T] | tuple[Literal[False], ZonError]:
def _validate(
self, data: T
) -> tuple[Literal[True], T] | tuple[Literal[False], ZonError]:
"""Validates the supplied data.

Args:
Expand Down