Skip to content

AttributeError: module 'duckdb' has no attribute 'typing' #160

@hahau6

Description

@hahau6

What happens?

duckdb 1.4.1 , the following code is from offical document
import duckdb
from typing import Union

duckdb.typing.DuckDBPyType(list[dict[Union[str, int], str]])

raise the exception AttributeError: module 'duckdb' has no attribute 'typing'

To Reproduce

duckdb 1.4.1 , the following code is from offical document
import duckdb
from typing import Union

duckdb.typing.DuckDBPyType(list[dict[Union[str, int], str]])

raise the exception AttributeError: module 'duckdb' has no attribute 'typing'

OS:

win10

DuckDB Version:

1.4.1

DuckDB Client:

python

Hardware:

No response

Full Name:

hao

Affiliation:

tsinghua

Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?

  • Yes, I have

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant data sets for reproducing the issue?

No - Other reason (please specify in the issue body)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions