Skip to content

Commit

Permalink
Fix bytes -> bytearray dtype for bytea
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Oct 26, 2021
1 parent f75be87 commit 55da159
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flaco"
version = "0.4.0"
version = "0.4.1"
edition = "2018"
license = "Unlicense/MIT"

Expand Down
2 changes: 1 addition & 1 deletion flaco/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.4.0"
__version__ = "0.4.1"
from .io import read_sql, Database
2 changes: 1 addition & 1 deletion flaco/io.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ cdef np.ndarray array_init(lib.Data data, int len):
elif data.tag == lib.Data_Tag.Boolean:
array = np.empty(shape=len, dtype=bool)
elif data.tag == lib.Data_Tag.Bytes:
array = np.empty(shape=len, dtype=bytes)
array = np.empty(shape=len, dtype=bytearray)
elif data.tag == lib.Data_Tag.Decimal:
array = np.empty(shape=len, dtype=np.float64)
elif data.tag == lib.Data_Tag.Null:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

setup(
name="flaco",
version="0.4.0",
version="0.4.1",
author="Miles Granger",
author_email="miles59923@gmail.com",
description="Fast and Efficient PostgreSQL data into numpy/pandas",
Expand Down

0 comments on commit 55da159

Please sign in to comment.