py2ts.config.Config

class py2ts.config.Config(comment_line_length: int = 80, none_as_null: bool = True, export_interfaces: bool = True, any_as_unknown: bool = True, indent_with_tabs: bool = True, indent_size: int = 4)

Configuration for the py2ts module.

Attributes

TAB

Return the indentation string based on the configuration.

any_as_unknown

comment_line_length

export_interfaces

indent_size

indent_with_tabs

none_as_null

Methods

__init__([comment_line_length, ...])

override(config)

Override the configuration with the provided configuration.

property TAB

Return the indentation string based on the configuration.

__init__(comment_line_length: int = 80, none_as_null: bool = True, export_interfaces: bool = True, any_as_unknown: bool = True, indent_with_tabs: bool = True, indent_size: int = 4) None
override(config: MinimalConfig) Config

Override the configuration with the provided configuration.