Skip to content

Commit beb5242

Browse files
authored
suppressed pydantic warnings (#502)
Signed-off-by: Manav Gupta <[email protected]>
1 parent a50bc9e commit beb5242

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

mcpgateway/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def to_dict(self, use_alias: bool = False) -> Dict[str, Any]:
122122
{'foo': 1, 'bar': 'baz'}
123123
"""
124124
output = {}
125-
for key, value in self.dict(by_alias=use_alias).items():
125+
for key, value in self.model_dump(by_alias=use_alias).items():
126126
output[key] = value if not isinstance(value, BaseModel) else value.to_dict(use_alias)
127127
return output
128128

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@ python_functions = ["test_*"]
363363

364364
# Playwright browser configuration (can be overridden via CLI)
365365
# These are custom options that your conftest.py can read
366-
playwright_browser = "chromium" # default browser
367-
playwright_headed = false # run headless by default
368-
playwright_slow_mo = 0 # milliseconds delay between actions
369-
playwright_screenshot = "only-on-failure"
370-
playwright_video = "retain-on-failure"
371-
playwright_trace = "retain-on-failure"
366+
# playwright_browser = "chromium" # default browser
367+
# playwright_headed = false # run headless by default
368+
# playwright_slow_mo = 0 # milliseconds delay between actions
369+
# playwright_screenshot = "only-on-failure"
370+
# playwright_video = "retain-on-failure"
371+
# playwright_trace = "retain-on-failure"
372372

373373
# ── fawltydeps ─────────────────────────────────────────────────────
374374
[tool.fawltydeps]

0 commit comments

Comments
 (0)