On this page
  1. annotationlib.Format
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

annotationlib.Format

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


Import

import annotationlib
from annotationlib import Format

Signature & Overview

annotationlib.Format(*values)

annotationlib.Format class.

Methods & Attributes

Usage

import annotationlib

# Python 3.14+ enum controlling deferred annotation evaluation (VALUE, FORWARDREF, STRING)
assert annotationlib.Format.VALUE.value == 1
assert annotationlib.Format.STRING.value == 3

Gotchas

REPL Inspect

from annotationlib import Format
help(Format)

Linked from

Related notes