1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, FrozenSet, Mapping, Sequence
from libcst._parser.parso.utils import PythonVersionInfo
class BaseWhitespaceParserConfig:
def __new__(
cls,
*,
lines: Sequence[str],
default_newline: str,
) -> BaseWhitespaceParserConfig: ...
lines: Sequence[str]
default_newline: str
class ParserConfig(BaseWhitespaceParserConfig):
def __new__(
cls,
*,
lines: Sequence[str],
encoding: str,
default_indent: str,
default_newline: str,
has_trailing_newline: bool,
version: PythonVersionInfo,
future_imports: FrozenSet[str],
) -> BaseWhitespaceParserConfig: ...
# lines is inherited
encoding: str
default_indent: str
# default_newline is inherited
has_trailing_newline: bool
version: PythonVersionInfo
future_imports: FrozenSet[str]
def parser_config_asdict(config: ParserConfig) -> Mapping[str, Any]: ...
|