
    ^h                     >    S SK r S SKJrJr  S SKJr   " S S\5      rg)    N)
NamedTupleOptional)subscript_to_slicec                   z    \ rS rSr% \\S'   \\   \S'   \\S'   \\   \S'   \S\R                  SS 4S j5       r
S	rg
)AstRange   lineno
end_lineno
col_offsetend_col_offsetnodereturnc           
      h    U " UR                   [        USS 5      UR                  [        USS 5      S9$ )Nr
   r   )r	   r
   r   r   )r	   getattrr   )clsr   s     Q/home/james-whalen/.local/lib/python3.13/site-packages/ipyflow/utils/ast_utils.pyfrom_ast_nodeAstRange.from_ast_node   s6    ;;t\48"4)94@	
 	
     N)__name__
__module____qualname____firstlineno__int__annotations__r   classmethodastASTr   __static_attributes__r   r   r   r   r      sD    KOSM!
 
Z 
 
r   r   )r   typingr   r   pyccolo._fast.misc_ast_utilsr   r   r   r   r   <module>r#      s    
 ' ;
z 
r   