On this page
  1. annotationlib.call_evaluate_function
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

annotationlib.call_evaluate_function

Prev: annotationlib.call_annotate_function | Up: annotationlib | Next: annotationlib.Format
Rel: annotationlib.annotations_to_string, annotationlib.call_annotate_function, annotationlib.Format, annotationlib.ForwardRef
Ref: docs.python.org — annotationlib.call_evaluate_function
Tags: #public #python3 #stdlib #annotationlib


Import

import annotationlib
from annotationlib import call_evaluate_function

Signature & Overview

annotationlib.call_evaluate_function(evaluate, format, *, owner=None)

Call an evaluate function. Evaluate functions are normally generated for the value of type aliases and the bounds, constraints, and defaults of type parameter objects.

Usage

import annotationlib

# Python 3.14+: invokes PEP 649 evaluate functions (e.g. TypeAliasType.evaluate_value)
assert callable(annotationlib.call_evaluate_function)

Gotchas

REPL Inspect

from annotationlib import call_evaluate_function
help(call_evaluate_function)

Linked from

Related notes