Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimal typing for decorators #895

Closed
wants to merge 1 commit into from

Conversation

Olegt0rr
Copy link

@Olegt0rr Olegt0rr commented Sep 2, 2024

What do these changes do?

The task of adding full typing to the library is quite a long one. We can wait long enough for contributors to have time.

Since we are already using the library today, I suggest covering the smallest, but most frequently used part of it in the simplest way.

Even if it is more correct to describe ParamSpec, etc. - let's do it in this minimal version. And as soon as the contributors have the strength and time, we will redo it in the target form.

Are there changes in behavior for the user?

Displaying original type hints of decorated function

Before

Screenshot 2024-09-03 at 00 03 47

After

Screenshot 2024-09-03 at 00 04 26

Related issue number

Related to #512 (as a temporary solution)

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@Olegt0rr
Copy link
Author

Olegt0rr commented Sep 2, 2024

Closed, cause: #512 (comment)

@Olegt0rr Olegt0rr closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant