Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.ci hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored and commonism committed Apr 5, 2023
1 parent 3d5d4e5 commit 024f27e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions aiopenapi3/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def loader_prepare(args, session_factory):

path = yarl.URL(args.input)
if path.scheme in ["http", "https"]:

loader = WebLoader(baseurl=path.with_path("/").with_query({}), yload=ylc, session_factory=session_factory)
else:
locations = args.locations or [Path(args.input).parent]
Expand Down Expand Up @@ -231,7 +230,6 @@ def cmd_convert(args):
loader_args(cmd)

def cmd_call(args):

loader, _ = loader_prepare(args, session_factory)

def prepare_arg(value):
Expand Down
1 change: 0 additions & 1 deletion aiopenapi3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def from_schema(
discriminators: List["DiscriminatorBase"] = None,
extra: "SchemaBase" = None,
):

if schemanames is None:
schemanames = []

Expand Down
1 change: 0 additions & 1 deletion aiopenapi3/v20/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class _ParameterCodec:
"""

def _encode__collection(self, values):

sep = self.SEPERATOR_VALUES.get(self.collectionFormat, None)
if sep:
if self.type == "array":
Expand Down
1 change: 0 additions & 1 deletion aiopenapi3/v30/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def _encode__label(self, name, value, explode):
# .blue.black.brown
value = "." + ".".join(value)
elif self.schema_.type == "object":

values = value if isinstance(value, dict) else dict(value._iter(to_dict=True))
if explode:
# .R=100.G=200.B=150
Expand Down
1 change: 0 additions & 1 deletion aiopenapi3/v31/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class License(ObjectExtended):

@root_validator
def validate_License(cls, values):

"""
A URL to the license used for the API. This MUST be in the form of a URL. The url field is mutually exclusive of the identifier field.
"""
Expand Down
1 change: 0 additions & 1 deletion tests/linode_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def parsed(self, ctx):
]["properties"]["is_default"]["$ref"] = "#/components/schemas/CreditCardData/properties/is_default"

for k, v in ctx.document["components"]["schemas"]["PaymentMethod"]["discriminator"]["mapping"].items():

n = v.split("/")[-1]
ctx.document["components"]["schemas"][n]["properties"]["type"] = {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion tests/pathv20_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def test_paths_security_v20_alternate_securityparameters(httpx_mock, with_paths_


def test_paths_security_v20_post_body(httpx_mock, with_paths_security_v20):

auth = str(uuid.uuid4())
api = OpenAPI(URLBASE, with_paths_security_v20, session_factory=httpx.Client)
user = api._.createUser.return_value().get_type().construct(name="test", id=1)
Expand Down

0 comments on commit 024f27e

Please sign in to comment.