From ae762113b77035fb583ae8e49845dae9bb70235b Mon Sep 17 00:00:00 2001 From: Levente Hunyadi Date: Thu, 4 Apr 2024 11:31:10 +0200 Subject: [PATCH] Release new version in PyPI --- mypy.ini | 2 +- pysqlsync/__init__.py | 2 +- pysqlsync/formation/object_types.py | 2 +- pysqlsync/formation/py_to_sql.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mypy.ini b/mypy.ini index 88059a7..9da1fc5 100644 --- a/mypy.ini +++ b/mypy.ini @@ -6,4 +6,4 @@ disallow_untyped_defs = True ignore_missing_imports = True show_column_numbers = True warn_redundant_casts = True -warn_unused_ignores = True +warn_unused_ignores = False diff --git a/pysqlsync/__init__.py b/pysqlsync/__init__.py index 5bff065..e5be4fc 100644 --- a/pysqlsync/__init__.py +++ b/pysqlsync/__init__.py @@ -7,7 +7,7 @@ :see: https://github.com/hunyadi/pysqlsync """ -__version__ = "0.5.0" +__version__ = "0.6.0" __author__ = "Levente Hunyadi" __copyright__ = "Copyright 2023-2024, Levente Hunyadi" __license__ = "MIT" diff --git a/pysqlsync/formation/object_types.py b/pysqlsync/formation/object_types.py index f789e15..bec4612 100644 --- a/pysqlsync/formation/object_types.py +++ b/pysqlsync/formation/object_types.py @@ -6,7 +6,7 @@ from strong_typing.inspection import is_dataclass_instance from strong_typing.topological import topological_sort -from ..model.data_types import SqlDataType, SqlUserDefinedType, constant, quote +from ..model.data_types import SqlDataType, SqlUserDefinedType, constant from ..model.id_types import LocalId, SupportsQualifiedId from .object_dict import ObjectDict diff --git a/pysqlsync/formation/py_to_sql.py b/pysqlsync/formation/py_to_sql.py index 32bf160..08c5786 100644 --- a/pysqlsync/formation/py_to_sql.py +++ b/pysqlsync/formation/py_to_sql.py @@ -893,7 +893,7 @@ def dataclasses_to_catalog( enum_types = [obj for obj in referenced_types if is_type_enum(obj)] enum_types.sort(key=lambda e: e.__name__) for enum_type in enum_types: - enum_values = [str(e.value) for e in enum_type] + enum_values = [str(e.value) for e in enum_type] # type: ignore if len(enum_values) < 2: # enumerations with too few members expand into extensible enumeration tables continue