Skip to content

inspect: support get_original_fn for class method - #115

Merged
kimjh12 merged 1 commit into
quora:masterfrom
kimjh12:master
Aug 28, 2026
Merged

inspect: support get_original_fn for class method#115
kimjh12 merged 1 commit into
quora:masterfrom
kimjh12:master

Conversation

@kimjh12

@kimjh12 kimjh12 commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

When a method decorated with DecoratorBase is accessed via Class.method or instance.method, Python's descriptor protocol automatically calls DecoratorBase.get(), which returns DecoratorBinder object.
One example is marking a class method by asynq (https://github.com/quora/asynq)

When a method decorated with DecoratorBase is accessed via Class.method or instance.method,
Python's descriptor protocol automatically calls DecoratorBase.__get__(), which returns
DecoratorBinder object.
One example is marking a class method by `asynq` (https://github.com/quora/asynq)
@kimjh12
kimjh12 merged commit 35a91d2 into quora:master Aug 28, 2026
11 of 15 checks passed
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