Skip to content

Commit

Permalink
🔒️ Fix issue of infinity as input in pydantic
Browse files Browse the repository at this point in the history
The use of `"infinity"` as an input to `datetime` and date fields causes an infinite loop in pydantic.

Check here: https://github.com/yezz123/pyngo/security/dependabot/10
  • Loading branch information
yezz123 authored Feb 2, 2023
1 parent 6866e86 commit 0f37fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [

dependencies = [
"typing-extensions >=3.7.4,<4.5.0",
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
"pydantic >=1.8.2,<2.0.0",
"Django >=3.2.0,<4.0.0",
]

Expand Down

0 comments on commit 0f37fb9

Please sign in to comment.