Files
Dawid Małecki 62ce98db99 Split scope definitions into smaller files (#56073)
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
2026-03-18 09:29:02 -07:00

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")