Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 16, 2024
1 parent 6bea3f8 commit b347e23
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nonebot/adapters/telegram/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ class BotConfig(BaseModel):

if PYDANTIC_V2:
model_config: ConfigDict = ConfigDict(
extra = "ignore",
populate_by_name = True,
extra="ignore",
populate_by_name=True,
)
else:

class Config:
extra = "ignore"
allow_population_by_field_name = True
Expand All @@ -47,10 +48,11 @@ class AdapterConfig(BaseModel):

if PYDANTIC_V2:
model_config: ConfigDict = ConfigDict(
extra = "ignore",
populate_by_name = True,
extra="ignore",
populate_by_name=True,
)
else:

class Config:
extra = "ignore"
allow_population_by_field_name = True

0 comments on commit b347e23

Please sign in to comment.