Skip to content

Creating ZstdCompressor with explicit dict_data=None returns TypeError #152

Closed
@rodrigozhou

Description

@rodrigozhou

Explicitly creating ZstdCompressor object with dict_data=None argument throws TypeError.
I don't think it makes sense to throw this error given that the default value is None.

Python 3.8 with python-zstandard 0.15.2.

[ins] In [1]: import zstandard as zstd

[ins] In [2]: zstd.ZstdCompressor(dict_data=None)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-69c06918fcac> in <module>
----> 1 zstd.ZstdCompressor(dict_data=None)

TypeError: ZstdCompressor() argument 2 must be zstd.ZstdCompressionDict, not None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions