chore: clean-up unnecessary annotation on configs with non-null default value (#9323)

This commit is contained in:
Bowen Liang
2024-10-14 23:47:58 +08:00
committed by GitHub
parent 3f9d6759d4
commit 5eb00502ec
4 changed files with 27 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ class PGVectorConfig(BaseSettings):
default=None,
)
PGVECTOR_PORT: Optional[PositiveInt] = Field(
PGVECTOR_PORT: PositiveInt = Field(
description="Port number on which the PostgreSQL server is listening (default is 5433)",
default=5433,
)