Method: pylint.checkers.utils.is_postponed_evaluation_enabled
Calls: 4465, Exceptions: 0, Paths: 1Back
Path 1: 4465 calls (1.0)
Attribute (3224) Module (1138) Name (32) BinOp (26) Subscript (22) AssignAttr (20) DelAttr (3)
False (4116) True (349)
1def is_postponed_evaluation_enabled(node: nodes.NodeNG) -> bool:
2 """Check if the postponed evaluation of annotations is enabled."""
3 module = node.root()
4 return "annotations" in module.future_imports