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

MyPy, Part II or III: Workflow metaclass #274

Merged
merged 8 commits into from
Nov 29, 2024

Conversation

hatchet-temporary
Copy link
Contributor

MyPy fixes for the Workflow metaclass and some downstream usage with a protocol

@hatchet-temporary hatchet-temporary marked this pull request as ready for review November 28, 2024 15:09
* fix: types for config, etc.

* fix: queue type hint

* fix: typeddict items
@hatchet-temporary hatchet-temporary merged commit dd83920 into mypy-for-worker-class Nov 29, 2024
4 checks passed
@hatchet-temporary hatchet-temporary deleted the mypy-for-workflow-class branch November 29, 2024 16:41
hatchet-temporary added a commit that referenced this pull request Dec 5, 2024
* feat: fix mypy for Workflow

* fix: type stub

* fix: remove any in a couple places

* fix: attempting using `Union`

* fix: try with `.Value`

* fix: name attr

* fix: remove more type: ignore

* MyPy for Context, etc. (#276)

* fix: types for config, etc.

* fix: queue type hint

* fix: typeddict items
hatchet-temporary added a commit that referenced this pull request Dec 6, 2024
…hers (#273)

* fix: lint

* feat: fixing mypy for the worker class

* cleanup: print statements, unused imports

* feat: exclude examples explicitly

* chore: version

* MyPy, Part II or III: `Workflow` metaclass (#274)

* feat: fix mypy for Workflow

* fix: type stub

* fix: remove any in a couple places

* fix: attempting using `Union`

* fix: try with `.Value`

* fix: name attr

* fix: remove more type: ignore

* MyPy for Context, etc. (#276)

* fix: types for config, etc.

* fix: queue type hint

* fix: typeddict items

* fix: install all the deps

* fix: backoff factors

* Feat: First Pass at Pydantic (#275)

* fix: types for config, etc.

* fix: typeddict items

* feat: initial pass at pydantic support

* fix: types

* fix: test

* fix: more types

* debug: adding prints, fixing validator not present

* fix: function sigs

* fix: typed dict key

* fix: comment

* feat: clean up validators

* cleanup: import

* cleanup: type hint improvements

* feat: add simple example

* feat: type casts

* fix: tests and example

* fix: worker fixture

* fix: deprecation warning for overrides

* feat: try out using a validator registry, part I

* feat: validator registry, part ii

* feat: clean up pydantic example

* fix: tests and lint

* fix: one more type cast

* cleanup: cruft and print statements

* fix: worker input val and validator key

* feat: expand tests a little

* fix: more typing

* feat: documentation updates for Pydantic

* cleanup: cruft
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