bpo-33211: Add def_lineno and class_lineno attributes to FunctionDef and ClassDef by emmatyping · Pull Request #6410 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

Decorated functions and classes report the line of the first decorator
as their lineno. This can be misleading and confusing, especially if the
decorator spans multiple lines.

Labels