mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
example: allow any str for bridge IP
This commit is contained in:
parent
62ed19fb68
commit
bfa8ec43c1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,11 +1,11 @@
|
|||
from pydantic import Field, IPvAnyAddress
|
||||
from pydantic import AnyHttpUrl, Field
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
hue_bridge_ip: IPvAnyAddress = Field(default=...)
|
||||
hue_bridge_ip: AnyHttpUrl = Field(default=...)
|
||||
hue_bridge_username: str = Field(default=...)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue