Skip to content

Commit

Permalink
Merge pull request #2 from miguelteixeiraa/feat/fix-python-compatible…
Browse files Browse the repository at this point in the history
…-versions

fix python compatible versions (allow 3.7+)
  • Loading branch information
miguelteixeiraa authored Dec 14, 2023
2 parents b96ee1e + 63a91e5 commit 715e091
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ A recent and currently supported version of [Python](https://www.python.org/down
## Installation

```console
$ # NOT PUPLISHED YET
$ # pip install crinkle
$ pip install crinkle
```

## Example
Expand Down
4 changes: 3 additions & 1 deletion crinkle/context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Generic, Optional, TypeVar

from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict

T = TypeVar('T')
D = TypeVar('D')
Expand All @@ -10,5 +10,7 @@ class Context(BaseModel, Generic[T, D]):
state: T
additional_data: Optional[D]

model_config = ConfigDict(arbitrary_types_allowed=True)

def __init__(self, initial_state: T, additional_data: Optional[D]):
super().__init__(state=initial_state, additional_data=additional_data)
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "crinkle"
version = "0.1.0"
version = "0.2.0"
description = ""
authors = ["Miguel Teixeira <[email protected]>"]
license = "MIT"
Expand All @@ -10,7 +10,7 @@ packages = [
]

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.7.0"
pydantic = "^2.5.2"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 715e091

Please sign in to comment.