Skip to content

Commit

Permalink
Format and improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajberchek committed Jul 15, 2019
1 parent f5f57b6 commit f877593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bowler/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import inspect
import logging
from inspect import Signature
from typing import TYPE_CHECKING, List, Optional, Sequence, Union

import click
Expand Down Expand Up @@ -157,7 +157,7 @@ def definition_contains_parameter(param_name: str, spec: "FunctionSpec") -> bool


def callsite_contains_parameter(
param_name: str, spec: "FunctionSpec", function_sig: inspect.Signature
param_name: str, spec: "FunctionSpec", function_sig: Signature
) -> bool:
# Handle kwargs
if spec_contains_parameter_name(param_name, spec):
Expand Down
2 changes: 1 addition & 1 deletion bowler/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def add_argument_transform(
raise ValueError(
f"{name} is already present in the callsite of {spec.name}"
)

# Drop kwarg at end of call to avoid breaking positional args
new_arg = FunctionArgument(name=name, value=value_leaf)

Expand Down

0 comments on commit f877593

Please sign in to comment.