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

inspect.formatannotationrelativeto

Prev: inspect.formatannotation | Up: inspect | Next: inspect.formatargvalues
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org — inspect.formatannotationrelativeto
Tags: #public #python3 #stdlib #inspect


Import

import inspect
from inspect import formatannotationrelativeto

Signature & Overview

inspect.formatannotationrelativeto(object)

inspect.formatannotationrelativeto() function.

Usage

import inspect

formatter = inspect.formatannotationrelativeto(inspect)
assert callable(formatter) and formatter(int) == "int"

Gotchas

REPL Inspect

from inspect import formatannotationrelativeto
help(formatannotationrelativeto)

Linked from

Related notes