-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
32 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,9 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
from .field_errors import * | ||
|
||
__version__ = "1.0.1" | ||
|
||
if TYPE_CHECKING: | ||
CPF = str | ||
CNH = str | ||
CPFMask = str | ||
CPFDigits = str | ||
CNPJ = str | ||
CNPJDigits = str | ||
CNPJMask = str | ||
TE = str | ||
PIS = str | ||
PISMask = str | ||
PISDigits = str | ||
Certidao = str | ||
CertidaoMask = str | ||
CertidaoDigits = str | ||
else: | ||
from .fields.certidao_field import * | ||
from .fields.cnh_field import * | ||
from .fields.cnpj_field import * | ||
from .fields.cpf_field import * | ||
from .fields.pis_field import * | ||
from .fields.te_field import * | ||
from .fields.base_field_errors import * | ||
from .fields.certidao_field import * | ||
from .fields.cnh_field import * | ||
from .fields.cnpj_field import * | ||
from .fields.cpf_field import * | ||
from .fields.pis_field import * | ||
from .fields.te_field import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from ..get_versions import get_pydantic_version | ||
from ..tools.get_versions import get_pydantic_version | ||
|
||
pydantic_version = get_pydantic_version() | ||
|
||
|
||
if pydantic_version.value == 1: | ||
from .base_field_v1 import BaseDigitsv1 as BaseDigits # noqa | ||
from .base_field_v1 import BaseMaskv1 as BaseMask # noqa | ||
from .base_field_v1 import Basev1 as Base # noqa | ||
from .base_field_v1 import BaseDigitsv1 as BaseDigits # type: ignore # noqa | ||
from .base_field_v1 import BaseMaskv1 as BaseMask # type: ignore # noqa | ||
from .base_field_v1 import Basev1 as Base # type: ignore # noqa | ||
|
||
if pydantic_version.value == 2: | ||
from .base_field_v2 import BaseDigitsV2 as BaseDigits # noqa | ||
from .base_field_v2 import BaseMaskV2 as BaseMask # noqa | ||
from .base_field_v2 import BaseV2 as Base # noqa | ||
from .base_field_v2 import BaseDigitsV2 as BaseDigits # type: ignore # noqa | ||
from .base_field_v2 import BaseMaskV2 as BaseMask # type: ignore # noqa | ||
from .base_field_v2 import BaseV2 as Base # type: ignore # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
pydantic_br/get_versions.py → pydantic_br/tools/get_versions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters