Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 3, 2024
1 parent d815ba2 commit 078871f
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions python-avd/pyavd/_schema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
from __future__ import annotations

from collections import ChainMap
from typing import Any, TYPE_CHECKING, Optional, Union, get_type_hints, get_origin, get_args, Annotated, Generator
from types import NoneType, UnionType
from typing import TYPE_CHECKING, Annotated, Any, Generator, Optional, Union, get_args, get_origin, get_type_hints
from warnings import warn

from .._utils import get_all
from .types import InvalidKey
from .validator import validator

if TYPE_CHECKING:
from .eos_designs import EosDesigns

from typing import TypeVar

from .eos_designs import EosDesigns

T = TypeVar("T")


Expand Down
2 changes: 1 addition & 1 deletion python-avd/schema_tools/generate_pydantic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from typing import TYPE_CHECKING

from .models import MinLenSrc, MaxLenSrc, FormatSrc, PatternSrc, ToLowerSrc, ValidValuesSrc
from .models import FormatSrc, MaxLenSrc, MinLenSrc, PatternSrc, ToLowerSrc, ValidValuesSrc

if TYPE_CHECKING:
from ..metaschema.meta_schema_model import AvdSchemaField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (c) 2023 Arista Networks, Inc.
# Copyright (c) 2023-2024 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the LICENSE file.
from pyavd._schema.store import create_store
from pyavd._schema.eos_cli_config_gen import EosCliConfigGen
from pyavd._schema.store import create_store

SCHEMA = create_store()["eos_cli_config_gen"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import pyavd._schema.models
import pyavd._schema.types

from schema_tools.generate_pydantic.models import FileSrc
from schema_tools.generate_pydantic.utils import generate_class_name
from schema_tools.metaschema.meta_schema_model import AristaAvdSchema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import pyavd._schema.models
import pyavd._schema.types

from schema_tools.generate_pydantic.models import FileSrc
from schema_tools.generate_pydantic.utils import generate_class_name
from schema_tools.metaschema.meta_schema_model import AristaAvdSchema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import pyavd._schema.models
import pyavd._schema.types

from schema_tools.generate_pydantic.models import FileSrc
from schema_tools.generate_pydantic.utils import generate_class_name
from schema_tools.metaschema.meta_schema_model import AristaAvdSchema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import pyavd._schema.models
import pyavd._schema.types

from schema_tools.generate_pydantic.models import FileSrc
from schema_tools.generate_pydantic.utils import generate_class_name
from schema_tools.metaschema.meta_schema_model import AristaAvdSchema
Expand Down

0 comments on commit 078871f

Please sign in to comment.