Skip to content

Commit

Permalink
Fix Minor Overload Resolution Issue (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto authored Oct 2, 2024
1 parent 2891aba commit 18dff00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.0.2

#### Trivial

- Remove elipses defaults on overloads to avoid incorrect resolution by [@max-muoto](https://github.com/max-muoto) in [#41](https://github.com/Opus10/django-pgbulk/pull/41/).

## 3.0.1

#### Trivial
Expand Down
8 changes: 4 additions & 4 deletions pgbulk/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def update(
update_fields: Union[List[str], None] = None,
*,
exclude: Union[List[str], None] = None,
returning: Union[List[str], Literal[True]] = ...,
returning: Union[List[str], Literal[True]],
ignore_unchanged: bool = False,
) -> List["Row"]: ...

Expand Down Expand Up @@ -684,7 +684,7 @@ async def aupdate(
update_fields: Union[List[str], None] = None,
*,
exclude: Union[List[str], None] = None,
returning: Union[List[str], Literal[True]] = ...,
returning: Union[List[str], Literal[True]],
ignore_unchanged: bool = False,
) -> List["Row"]: ...

Expand Down Expand Up @@ -750,7 +750,7 @@ def upsert(
update_fields: UpdateFieldsTypeDef = None,
*,
exclude: Union[List[str], None] = None,
returning: Union[List[str], Literal[True]] = ...,
returning: Union[List[str], Literal[True]],
ignore_unchanged: bool = False,
) -> UpsertResult: ...

Expand Down Expand Up @@ -843,7 +843,7 @@ async def aupsert(
update_fields: UpdateFieldsTypeDef = None,
*,
exclude: Union[List[str], None] = None,
returning: Union[List[str], Literal[True]] = ...,
returning: Union[List[str], Literal[True]],
ignore_unchanged: bool = False,
) -> UpsertResult: ...

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packages = [
exclude = [
"*/tests/"
]
version = "3.0.1"
version = "3.0.2"
description = "Native Postgres update, upsert, and copy operations."
authors = ["Wes Kendall"]
classifiers = [
Expand Down

0 comments on commit 18dff00

Please sign in to comment.