Skip to content

Commit d7c0df5

Browse files
committed
changed int to NonNegativeInt
1 parent bc9dc85 commit d7c0df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luxonis_ml/utils/environ.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33
from typing import Any, Literal, cast
44

5-
from pydantic import model_serializer
5+
from pydantic import NonNegativeInt, model_serializer
66
from pydantic_settings import BaseSettings, SettingsConfigDict
77

88
from luxonis_ml.typing import Params
@@ -30,7 +30,7 @@ class Environ(BaseSettings):
3030
POSTGRES_USER: str | None = None
3131
POSTGRES_PASSWORD: str | None = None
3232
POSTGRES_HOST: str | None = None
33-
POSTGRES_PORT: int | None = None
33+
POSTGRES_PORT: NonNegativeInt | None = None
3434
POSTGRES_DB: str | None = None
3535

3636
LUXONISML_BUCKET: str | None = None

0 commit comments

Comments
 (0)