class documentation

Literal constants in pyi files.

Class Method from_const Undocumented
Class Method from_num Undocumented
Class Method from_str Undocumented
Class Method is_str Undocumented
Method __repr__ Undocumented
Method negated Return a new constant with value -self.value.
Method repr_str String representation with prefixes.
Method to_pytd Undocumented
Method to_pytd_literal Make a pytd node from Literal[self.value].
Class Variable type Undocumented
Class Variable value Undocumented
@classmethod
def from_const(cls, node: ast3.NameConstant): (source)

Undocumented

@classmethod
def from_num(cls, node: ast3.Num): (source)

Undocumented

@classmethod
def from_str(cls, node: ast3.Str): (source)

Undocumented

@classmethod
def is_str(cls, value): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def negated(self): (source)

Return a new constant with value -self.value.

def repr_str(self): (source)

String representation with prefixes.

def to_pytd(self): (source)

Undocumented

def to_pytd_literal(self): (source)

Make a pytd node from Literal[self.value].

Undocumented

Undocumented