Skip to content

Commit

Permalink
fixup: linting in example
Browse files Browse the repository at this point in the history
  • Loading branch information
acmiyaguchi committed Aug 19, 2022
1 parent dea9bfc commit 52d5689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/examples/settings_with_custom_parsing.py
@@ -1,4 +1,5 @@
# output-json
import os
from typing import Any, List

from pydantic import BaseSettings
Expand All @@ -14,7 +15,7 @@ class Settings(BaseSettings):
class Config:
@classmethod
def parse_env_var(cls, field_name: str, raw_val: str) -> Any:
if field_name == "numbers":
if field_name == 'numbers':
return parse_list(raw_val)
return cls.json_loads(raw_val)

Expand Down

0 comments on commit 52d5689

Please sign in to comment.