Skip to content

Commit

Permalink
Merge pull request #13 from tulip/shay.py39fix
Browse files Browse the repository at this point in the history
Remove references to Python 3.12 typing feature
  • Loading branch information
ThePletch authored Aug 15, 2024
2 parents c83bed7 + 021558d commit fa20606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "relationalize"
version = "0.1.8"
version = "0.1.9"
authors = [
{ name="Henry Jones", email="[email protected]" },
]
Expand Down
3 changes: 1 addition & 2 deletions relationalize/sql_dialects.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from collections.abc import Mapping
from typing import Generic, Literal, NewType, TypeVar, override
from typing import Generic, Literal, NewType, TypeVar

from relationalize.types import SupportedColumnType

Expand Down Expand Up @@ -65,7 +65,6 @@ class PostgresDialect(SQLDialect[PostgresColumn]):
""".strip()

@staticmethod
@override
def generate_ddl_column(column_name: str, column_type: PostgresColumn):
cleaned_column_name = column_name.replace('"', '""')
return DDLColumn(f'"{cleaned_column_name}" {column_type}')

0 comments on commit fa20606

Please sign in to comment.