Skip to content

Commit

Permalink
run isort/black
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jan 27, 2024
1 parent 38dcaed commit d713c9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions django_typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ def call_with_self(*args, **kwargs):
*args,
**{
# process supplied parameters incase they need type conversion
param: self.param_converters.get(param, lambda _, value: value)(
ctx, val
param: (
self.param_converters.get(param, lambda _, value: value)(
ctx, val
)
if param in ctx.supplied_params
else val
)
if param in ctx.supplied_params
else val
for param, val in kwargs.items()
if param in expected
},
Expand Down
1 change: 1 addition & 0 deletions django_typer/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Django Typer app config. This module includes settings check and rich traceback
installation logic.
"""

import inspect
import typing as t
from types import ModuleType
Expand Down
1 change: 1 addition & 0 deletions django_typer/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Pass these parsers to the `parser` argument of typer.Option and
typer.Argument.
"""

import typing as t

from django.apps import AppConfig, apps
Expand Down

0 comments on commit d713c9a

Please sign in to comment.