"""
This type stub file was generated by pyright.
"""

from abc import ABC
from typing import Generic, TYPE_CHECKING, TypeVar
from graph_sitter.core.interfaces.has_block import HasBlock
from graph_sitter.core.statements.block_statement import BlockStatement
from graph_sitter.writer_decorators import apidoc
from graph_sitter.core.detached_symbols.code_block import CodeBlock

if TYPE_CHECKING:
    ...
Parent = TypeVar("Parent", bound="CodeBlock")
@apidoc
class TryCatchStatement(BlockStatement[Parent], HasBlock, ABC, Generic[Parent]):
    """Abstract representation of the try catch statement block.

    Attributes:
        code_block: The code block that may trigger an exception
        finalizer: The code block executed regardless of if an exception is thrown or not
    """
    statement_type = ...
    finalizer: BlockStatement | None = ...


