Skip to content

[FEATURE] Please add generics #81

Open
@spacether

Description

@spacether

Welcome! Before you write your Feature Request, please read below:

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Please add generics to frozendict
One should be able to define frozendict key and value types like so:

>>> import frozendict
>>> f = frozendict.frozendict[str, int]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'type' object is not subscriptable

this works

>>> import typing
>>> f = typing.Dict[str, int]

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions