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

typing.Text

Prev: typing.SupportsRound | Up: typing | Next: typing.TextIO
Rel: typing.AbstractSet, typing.Annotated, typing.Any, typing.assert_never
Ref: docs.python.org — typing.Text
Tags: #public #python3 #stdlib #typing


Import

import typing
from typing import Text

Signature & Overview

typing.Text(...)

str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer

Methods & Attributes

Usage

from typing import Text

assert Text is str

Gotchas

REPL Inspect

from typing import Text
help(Text)

Linked from

Related notes