Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/libcst/_parser/types/production.py: 90%
10 statements
« prev ^ index » next coverage.py v7.3.1, created at 2023-09-25 06:43 +0000
« prev ^ index » next coverage.py v7.3.1, created at 2023-09-25 06:43 +0000
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2#
3# This source code is licensed under the MIT license found in the
4# LICENSE file in the root directory of this source tree.
7from dataclasses import dataclass
8from typing import Optional
11@dataclass(frozen=True)
12class Production:
13 name: str
14 children: str
15 version: Optional[str]
16 future: Optional[str]
18 def __str__(self) -> str:
19 return f"{self.name}: {self.children}"