Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add instance check validators #10

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

kennedykori
Copy link
Contributor

Add the following checkers:

  • sghi.utils.checkers.ensure_instance_of.
  • sghi.utils.checkers.ensure_optional_instance_of

These validate that a value is an instance of a given type.

Add the following checkers:

- `sghi.utils.checkers.ensure_instance_of`.
- `sghi.utils.checkers.ensure_optional_instance_of`

These validate that a value is an instance of a given type.
@kennedykori kennedykori self-assigned this Oct 2, 2023
@saladgg saladgg merged commit 71d87d3 into develop Oct 2, 2023
5 checks passed
@saladgg saladgg deleted the feat-add-instance-check-validators branch October 2, 2023 07:26
kennedykori added a commit that referenced this pull request Mar 20, 2024
## [1.0.0-test.1](...v1.0.0-test.1) (2024-03-20)

### Features

* add `Config` interface ([#9](#9)) ([d70d082](d70d082))
* add common SGHI utilities and typings ([#3](#3)) ([d79769b](d79769b))
* add common utilities ([#6](#6)) ([1b620d5](1b620d5))
* add Disposable mixin and helpers ([#5](#5)) ([0ba9855](0ba9855))
* add instance check validators ([#10](#10)) ([71d87d3](71d87d3))
* add module loading utilities ([#7](#7)) ([573fe61](573fe61))
* add Task interface & its common implementations ([#8](#8)) ([513a22c](513a22c))
* add the `sghi.dispatch` module ([#11](#11)) ([b617c57](b617c57))
* add the `sghi.registry` module ([#12](#12)) ([f2d51bf](f2d51bf))

### Refactors

* add README and gitignore ([2e05fe7](2e05fe7))
* **build:** setup project ([#1](#1)) ([d53b486](d53b486))
kennedykori added a commit that referenced this pull request Mar 20, 2024
## [1.0.0-dev.1](...v1.0.0-dev.1) (2024-03-20)

### Features

* add `Config` interface ([#9](#9)) ([d70d082](d70d082))
* add common SGHI utilities and typings ([#3](#3)) ([d79769b](d79769b))
* add common utilities ([#6](#6)) ([1b620d5](1b620d5))
* add Disposable mixin and helpers ([#5](#5)) ([0ba9855](0ba9855))
* add instance check validators ([#10](#10)) ([71d87d3](71d87d3))
* add module loading utilities ([#7](#7)) ([573fe61](573fe61))
* add Task interface & its common implementations ([#8](#8)) ([513a22c](513a22c))
* add the `sghi.dispatch` module ([#11](#11)) ([b617c57](b617c57))
* add the `sghi.registry` module ([#12](#12)) ([f2d51bf](f2d51bf))

### Refactors

* add README and gitignore ([2e05fe7](2e05fe7))
* **build:** setup project ([#1](#1)) ([d53b486](d53b486))
@kennedykori
Copy link
Contributor Author

🎉 This PR is included in version 1.0.0-dev.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

kennedykori added a commit that referenced this pull request Mar 20, 2024
Add the following checkers:

- `sghi.utils.checkers.ensure_instance_of`.
- `sghi.utils.checkers.ensure_optional_instance_of`

These validate that a value is an instance of a given type.
kennedykori added a commit that referenced this pull request Mar 20, 2024
## [1.0.0-dev.1](...v1.0.0-dev.1) (2024-03-20)

### Features

* add `Config` interface ([#9](#9)) ([d70d082](d70d082))
* add common SGHI utilities and typings ([#3](#3)) ([d79769b](d79769b))
* add common utilities ([#6](#6)) ([1b620d5](1b620d5))
* add Disposable mixin and helpers ([#5](#5)) ([0ba9855](0ba9855))
* add instance check validators ([#10](#10)) ([71d87d3](71d87d3))
* add module loading utilities ([#7](#7)) ([573fe61](573fe61))
* add Task interface & its common implementations ([#8](#8)) ([513a22c](513a22c))
* add the `sghi.dispatch` module ([#11](#11)) ([b617c57](b617c57))
* add the `sghi.registry` module ([#12](#12)) ([f2d51bf](f2d51bf))

### Refactors

* add README and gitignore ([2e05fe7](2e05fe7))
* **build:** setup project ([#1](#1)) ([d53b486](d53b486))
kennedykori added a commit that referenced this pull request Mar 20, 2024
## [1.0.0](...v1.0.0) (2024-03-20)

### Features

* add `Config` interface ([#9](#9)) ([d70d082](d70d082))
* add common SGHI utilities and typings ([#3](#3)) ([d79769b](d79769b))
* add common utilities ([#6](#6)) ([1b620d5](1b620d5))
* add Disposable mixin and helpers ([#5](#5)) ([0ba9855](0ba9855))
* add instance check validators ([#10](#10)) ([71d87d3](71d87d3))
* add module loading utilities ([#7](#7)) ([573fe61](573fe61))
* add Task interface & its common implementations ([#8](#8)) ([513a22c](513a22c))
* add the `sghi.dispatch` module ([#11](#11)) ([b617c57](b617c57))
* add the `sghi.registry` module ([#12](#12)) ([f2d51bf](f2d51bf))

### Refactors

* add README and gitignore ([2e05fe7](2e05fe7))
* **build:** setup project ([#1](#1)) ([d53b486](d53b486))
@kennedykori
Copy link
Contributor Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants