Skip to content

Type Safety on decorators #32

Closed
@caffeine-addictt

Description

@caffeine-addictt

Enhancement Request

Your issue may already be reported!
Please check out our active issues before creating one.

Is Your Enhancement Request Related to an Issue?

At present, decorated functions do not have type hints
Say for this code for example

import thread

@thread.threaded
def myFunc(x: str) -> int: ...

myFunc(4) # This is not properly type hinted as "x: str", but "..."

Describe the Solution You'd Like

Decorated functions to be type hinted

Metadata

Metadata

Labels

Type: EnhancementSuggest an improvement for an existing feature.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions