mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56073 Changelog: [Internal] Splits `scope.py` into multiple smaller files, each containing a separate defitnition. Reviewed By: cipolleschi Differential Revision: D96284004 fbshipit-source-id: f99275cc9b5f8844f9a14f9d6207ae988aa9ccd7
22 lines
561 B
Python
22 lines
561 B
Python
# 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 __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
from .base_scope_kind import ScopeKind
|
|
|
|
if TYPE_CHECKING:
|
|
from .scope import Scope
|
|
|
|
|
|
class TemporaryScopeKind(ScopeKind):
|
|
def __init__(self) -> None:
|
|
super().__init__("temporary")
|
|
|
|
def to_string(self, scope: Scope) -> str:
|
|
raise RuntimeError("Temporary scope should not be printed")
|