
    sha              
       >
   S r SSKrSSKrSSKrSSKrSSKrSSKrSSK	J
r
  SSKJr  SSKJr  / rS r " S S\5      r " S	 S
\5      r " S S\\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \R>                  S!9r  " S" S#\ 5      r!Sq" SSK#r#\$" \#S$S%5      r%\&" \%RO                  S&5       V s/ s H  n \(" U 5      PM     sn 5      S':  a  S(r)\RT                  " \)5        \+e\RX                  R[                  S)S5      (       a  \+e SS*K#J.r.J/r/J0r0J1r1J2r2   " S+ S,\35      r4 " S- S.\35      r50 r6SSSSSSS/.\6S0'   \1Rn                  \1Rp                  \1Rr                  \1Rt                  \1Rv                  \2Rx                  S/.\6S1'   \1Rn                  \1Rz                  \1R|                  \1Rz                  \1Rv                  \2Rx                  S/.\6S2'   \1Rr                  \1Rp                  \1R|                  \1R~                  \1Rv                  \2Rx                  S/.\6S3'   \1Rz                  \1Rz                  \1Rt                  \1R~                  \1Rv                  \2Rx                  S/.\6S4'   \6S0   r@ " S5 S6\!5      rAS7 rBS;rDS<rES=rFS>rGS?\E-  rHS@rISA\R                  < SB\E< SC3rK\L" 5       rM\F\MSD'   \I\MSE'   \K\MSF'   \G\MSG'   \H\MSH'   SI rN " SJ SK\35      rO " SL SM\P5      rQ " SN SO\Q5      rR " SP SQ\P5      rS " SR SS\R5      rT " ST SU\Q5      rU " SV SW\U5      rV " SX SY\U5      rW " SZ S[\U5      rX " S\ S]\Q5      rY " S^ S_\Q5      rZ " S` Sa\Q5      r[ " Sb Sc\Z5      r\ " Sd Se\Q5      r] " Sf Sg\]5      r^ " Sh Si\Q5      r_ " Sj Sk\Q5      r` " Sl Sm\Q5      ra " Sn So\Q5      rb " Sp Sq\b5      rc " Sr Ss\b5      rd " St Su\]5      re " Sv Sw\Q5      rf " Sx Sy\]5      rg " Sz S{\]5      rh " S| S}\]5      ri " S~ S\]5      rj " S S\]5      rk " S S\]5      rl " S S\]5      rm " S S\]5      rn " S S\Q5      roS rp\R                  R                  \s5      rt0 ru\R                  S 5       rw\\x" 5       R                  5        VVs/ s HA  u  pUR                  S5      (       a  M  \{" U\|5      (       d  M-  \}" U\P\45      (       d  M?  UPMC     snn-  rgs  sn f ! \+ a     " S8 S9\!5      rCS: rB GN]f = fs  snnf )z%
Numba-specific errors and warnings.
    N)defaultdictwraps)abstractmethodc                  Z     [         R                  R                    g! [         a     gf = f)zN
To detect if numba.core.config has been initialized due to circular imports.
TF)numbacoreconfigAttributeError     e/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/numba/core/errors.py_is_numba_core_config_loadedr      s-    

   s    
**c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )NumbaWarning    z0
Base category for all Numba compiler warnings.
c                   > Xl         X l        U(       a$  [        5       (       a  [        5       R                  nOS nU(       a0  [
        [        U ]  U" U< SUR                  5       < S35      5        g [
        [        U ]  U" U< 5      5        g )Nc                     U $ Nr   xs    r   	highlight(NumbaWarning.__init__.<locals>.highlight.       r   
)	msglocr   	termcolorerrmsgsuperr   __init__	strformat)selfr   r   highlightingr   	__class__s        r   r!   NumbaWarning.__init__%   si     8::!**I,.S]]_=>@ ,.y/GHr   )r   r   NT__name__
__module____qualname____firstlineno____doc__r!   __static_attributes____classcell__r%   s   @r   r   r       s    I Ir   r   c                       \ rS rSrSrSrg)NumbaPerformanceWarning7   zJ
Warning category for when an operation might not be
as fast as expected.
r   Nr)   r*   r+   r,   r-   r.   r   r   r   r2   r2   7       r   r2   c                       \ rS rSrSrSrg)NumbaDeprecationWarning>   z3
Warning category for use of a deprecated feature.
r   Nr4   r   r   r   r7   r7   >       r   r7   c                       \ rS rSrSrSrg)NumbaPendingDeprecationWarningD   zD
Warning category for use of a feature that is pending deprecation.
r   Nr4   r   r   r   r;   r;   D   r9   r   r;   c                       \ rS rSrSrSrg)NumbaParallelSafetyWarningJ   zW
Warning category for when an operation in a prange
might not have parallel semantics.
r   Nr4   r   r   r   r>   r>   J   r5   r   r>   c                       \ rS rSrSrSrg)NumbaTypeSafetyWarningQ   z1
Warning category for unsafe casting operations.
r   Nr4   r   r   r   rA   rA   Q   r9   r   rA   c                       \ rS rSrSrSrg)NumbaExperimentalFeatureWarningW   z5
Warning category for using an experimental feature.
r   Nr4   r   r   r   rD   rD   W   r9   r   rD   c                       \ rS rSrSrSrg)NumbaInvalidConfigWarning]   z6
Warning category for using an invalid configuration.
r   Nr4   r   r   r   rG   rG   ]   r9   r   rG   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )NumbaPedanticWarningc   z3
Warning category for reporting pedantic messages.
c                 6   > [         TU ]  U S[         35        g )Nr   )r    r!   pedantic_warning_info)r#   r   kwargsr%   s      r   r!   NumbaPedanticWarning.__init__g   s    C5#8"9:;r   r   r(   r0   s   @r   rJ   rJ   c   s    < <r   rJ   c                       \ rS rSrSrSrg)NumbaIRAssumptionWarningk   z<
Warning category for reporting an IR assumption violation.
r   Nr4   r   r   r   rQ   rQ   k   r9   r   rQ   c                       \ rS rSrSrSrg)NumbaDebugInfoWarningq   zG
Warning category for an issue with the emission of debug information.
r   Nr4   r   r   r   rT   rT   q   r9   r   rT   c                       \ rS rSrSrSrg)NumbaSystemWarningw   z>
Warning category for an issue with the system configuration.
r   Nr4   r   r   r   rW   rW   w   r9   r   rW   c                   t    \ rS rSr\S 5       r\S 5       r\S 5       r\S 5       r\S 5       r	\S 5       r
Srg	)
_ColorScheme   c                     g r   r   r#   r   s     r   code_ColorScheme.code       r   c                     g r   r   r]   s     r   r   _ColorScheme.errmsg   r`   r   c                     g r   r   r]   s     r   filename_ColorScheme.filename   r`   r   c                     g r   r   r]   s     r   indicate_ColorScheme.indicate   r`   r   c                     g r   r   r]   s     r   r   _ColorScheme.highlight   r`   r   c                     g r   r   r]   s     r   reset_ColorScheme.reset   r`   r   r   N)r)   r*   r+   r,   r   r^   r   rd   rg   r   rl   r.   r   r   r   rZ   rZ      sx               r   rZ   )	metaclassc                   B    \ rS rSrSS jrS rS rS rS rS r	S	 r
S
rg)_DummyColorScheme   Nc                     g r   r   r#   themes     r   r!   _DummyColorScheme.__init__       r   c                     g r   r   r]   s     r   r^   _DummyColorScheme.code   rv   r   c                     g r   r   r]   s     r   r   _DummyColorScheme.errmsg   rv   r   c                     g r   r   r]   s     r   rd   _DummyColorScheme.filename   rv   r   c                     g r   r   r]   s     r   rg   _DummyColorScheme.indicate   rv   r   c                     g r   r   r]   s     r   r   _DummyColorScheme.highlight   rv   r   c                     g r   r   r]   s     r   rl   _DummyColorScheme.reset   rv   r   r   r   r)   r*   r+   r,   r!   r^   r   rd   rg   r   rl   r.   r   r   r   rp   rp      s%    r   rp   __version__z0.0.0.)r      	   zNInsufficiently recent colorama version found. Numba requires colorama >= 0.3.9(NUMBA_DISABLE_ERROR_MESSAGE_HIGHLIGHTING)initreinitdeinitForeStylec                   *    \ rS rSrSrS rS rS rSrg)
ColorShell   Fc                 &    [        5         SU l        g r'   )r   _has_initializedr#   s    r   r!   ColorShell.__init__   s    F$(D!r   c                 <    U R                   (       a  [        5         g g r   )r   r   r   s    r   	__enter__ColorShell.__enter__   s    $$ %r   c                 8    [         R                    [        5         g r   )r   	RESET_ALLr   r#   
exc_details     r   __exit__ColorShell.__exit__   s    OOHr   )r   N)	r)   r*   r+   r,   r   r!   r   r   r.   r   r   r   r   r      s     	)		r   r   c                   &    \ rS rSrS rS rS rSrg)reset_terminal   c                 $    [        S5      U l        g )Nr   )	bytearray_bufr   s    r   r!   reset_terminal.__init__   s    !#DIr   c                     U R                   $ r   r   r   s    r   r   reset_terminal.__enter__  s    99r   c                 z    U =R                   [        [        R                  R	                  S5      5      -  sl         g )Nutf-8)r   r   r   r   encoder   s     r   r   reset_terminal.__exit__  s$    II5??#9#9'#BCCIr   r   N)r)   r*   r+   r,   r!   r   r   r.   r   r   r   r   r      s    	'		Dr   r   )r^   r   rd   rg   r   rl   no_colordark_bglight_bgblue_bg
jupyter_nbc                   f    \ rS rSr\4S jrS\R                  4S jrS r	S r
S rS rS	 rS
 rSrg)HighlightColorSchemei5  c                     US   U l         US   U l        US   U l        US   U l        US   U l        US   U l        [        R                  XS9  g )Nr^   r   rd   rg   r   rl   rt   )_code_errmsg	_filename	_indicate
_highlight_resetrp   r!   rs   s     r   r!   HighlightColorScheme.__init__6  sX    vDJ ?DL":.DN":.DN#K0DO.DK&&t&9r   Nc                 2   SnU(       a  XB-  nU(       a  XC-  n[        5          [        5        nXTR                  S5      -  nXQR                  S5      -  nS S S 5        WR                  S5      sS S S 5        $ ! , (       d  f       N(= f! , (       d  f       g = f)N r   )r   r   r   decode)r#   r   colorstylefeaturesmus         r   _markupHighlightColorScheme._markup?  su    H!!#%//'22B,,w//B & yy)	 %% s"   B'A7B7
B	B
Bc                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   r^   HighlightColorScheme.codeK  s    <<ZZ00r   c                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   r   HighlightColorScheme.errmsgN  s    <<\\22r   c                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   rd   HighlightColorScheme.filenameQ      <<^^44r   c                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   rg   HighlightColorScheme.indicateT  r   r   c                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   r   HighlightColorScheme.highlightW  s    <<__55r   c                 8    U R                  XR                  5      $ r   )r   r   r]   s     r   rl   HighlightColorScheme.resetZ  s    <<[[11r   )r   r   r   r   r   r   )r)   r*   r+   r,   default_themer!   r   BRIGHTr   r^   r   rd   rg   r   rl   r.   r   r   r   r   r   5  s8    !. 	: &* 
	*	1	3	5	5	6	2r   r   c                      [         c6  [        [        R                  R                  R
                     n [        U 5      q [         $ r   )_termcolor_instthemesr   r	   r
   COLOR_SCHEMEr   )schemes    r   r   r   ]  s2    "EJJ--::;F26:Or   c                   B    \ rS rSrSS jrS rS rS rS rS r	S	 r
S
rg)NOPColorScheme   Nc                 F    Ub  [        S5      e[        R                  XS9  g )Nz specifying a theme has no effectr   )
ValueErrorrp   r!   rs   s     r   r!   NOPColorScheme.__init__   s%      !CDD&&t&9r   c                     U$ r   r   r]   s     r   r^   NOPColorScheme.code       Jr   c                     U$ r   r   r]   s     r   r   NOPColorScheme.errmsg   r   r   c                     U$ r   r   r]   s     r   rd   NOPColorScheme.filename   r   r   c                     U$ r   r   r]   s     r   rg   NOPColorScheme.indicate   r   r   c                     U$ r   r   r]   s     r   r   NOPColorScheme.highlight   r   r   c                     U$ r   r   r]   s     r   rl   NOPColorScheme.reset   r   r   r   r   r   r   r   r   r   r      s%    	:
						r   r   c                  0    [         c
  [        5       q [         $ r   )r   r   r   r   r   r   r      s    ",.Or   z
This warning came from an internal pedantic check. Please report the warning
message and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new?template=bug_report.md
aD  
Please report the error message and traceback, along with a minimal reproducer
at: https://github.com/numba/numba/issues/new?template=bug_report.md

If more help is needed please feel free to speak to the Numba core developers
directly at: https://gitter.im/numba/numba

Thanks in advance for your help in improving Numba!
z
Unsupported functionality was found in the code Numba was trying to compile.

If this functionality is important to you please file a feature request at:
https://github.com/numba/numba/issues/new?template=feature_request.md
a  
Unsupported Python functionality was found in the code Numba was trying to
compile. This error could be due to invalid code, does the code work
without Numba? (To temporarily disable Numba JIT, set the `NUMBA_DISABLE_JIT`
environment variable to non-zero, and then rerun the code).

If the code is valid and the unsupported functionality is important to you
please file a feature request at:
https://github.com/numba/numba/issues/new?template=feature_request.md

To see Python/NumPy features supported by the latest release of Numba visit:
https://numba.readthedocs.io/en/stable/reference/pysupported.html
and
https://numba.readthedocs.io/en/stable/reference/numpysupported.html
a  
Numba could not make a constant out of something that it decided should be
a constant. This could well be a current limitation in Numba's internals,
however please first check that your code is valid for compilation,
particularly with respect to string interpolation (not supported!) and
the requirement of compile time constants as arguments to exceptions:
https://numba.readthedocs.io/en/stable/reference/pysupported.html?highlight=exceptions#constructs

If the code is valid and the unsupported functionality is important to you
please file a feature request at:
https://github.com/numba/numba/issues/new?template=feature_request.md

If you think your code should work with Numba. %s
a  
This is not usually a problem with Numba itself but instead often caused by
the use of unsupported features or an issue in resolving types.

To see Python/NumPy features supported by the latest release of Numba visit:
https://numba.readthedocs.io/en/stable/reference/pysupported.html
and
https://numba.readthedocs.io/en/stable/reference/numpysupported.html

For more information about typing errors and how to debug them visit:
https://numba.readthedocs.io/en/stable/user/troubleshoot.html#my-code-doesn-t-compile

If you think your code should work with Numba, please report the error message
and traceback, along with a minimal reproducer at:
https://github.com/numba/numba/issues/new?template=bug_report.md
z
-------------------------------------------------------------------------------
This should not have happened, a problem has occurred in Numba's internals.
You are currently using Numba version z.
r   unsupported_errortyping
reportableinterpreterconstant_inferencec                 d   ^ [        U [        5      (       a  U OSmU4S jnT(       d  U" U 5      $ U$ )zDefine a deprecation decorator.
An optional string should refer to the new API to be used instead.

Example:
  @deprecated
  def old_func(): ...

  @deprecated('new_func')
  def old_func(): ...Nc                 6   >^  U U4S jn[        T 5      " U5      $ )Nc                     > SnT(       a  US-  n[         R                  " UR                  TR                  T5      [        SS9  T" U 0 UD6$ )Nz!Call to deprecated function "{}".z
 Use "{}" instead.   )category
stacklevel)warningswarnformatr)   DeprecationWarning)argsrN   r   funcsubsts      r   wrapper.deprecated.<locals>.decorator.<locals>.wrapper  sI    7C//MM#**T]]E:#5!E(((r   r   )r   r   r   s   ` r   	decoratordeprecated.<locals>.decorator  s    	) T{7##r   )
isinstancestr)argr  r   s     @r   
deprecatedr    s2     c3''CTE	$ ~r   c                   X    \ rS rSrSrS r\R                  S
S j5       rS r	S r
S rS	rg)WarningsFixeri  a*  
An object "fixing" warnings of a given category caught during
certain phases.  The warnings can have their filename and lineno fixed,
and they are deduplicated as well.

When used as a context manager, any warnings caught by `.catch_warnings()`
will be flushed at the exit of the context manager.
c                 8    Xl         [        [        5      U l        g r   )	_categoryr   set	_warnings)r#   r   s     r   r!   WarningsFixer.__init__  s    !$S)r   Nc              #   P  #    [         R                  " SS9 n[         R                  " SU R                  5        Sv   SSS5        W H  n[	        UR
                  5      n[        UR                  U R                  5      (       aV  U=(       d    UR                  nU=(       d    UR                  nU R                  XUR                  4   R                  U5        M  [         R                  " XTR                  UR                  UR                  5        M     g! , (       d  f       N= f7f)z>
Store warnings and optionally fix their filename and lineno.
T)recordalwaysN)r   catch_warningssimplefilterr
  r  message
issubclassr   rd   linenor  addwarn_explicit)r#   rd   r  wlistwr   s         r   r  WarningsFixer.catch_warnings  s     
 $$D1U!!(DNN; 2 Aaii.C!**dnn55#1qzz+188x;<@@E &&sJJ'(zz188= 	 21s   D&&DCD&
D#D&c                     S n[        U R                  R                  5       US9 H1  u  u  p#pE[        U5       H  n[        R                  " XdX#5        M     M3     U R                  R                  5         g)z
Emit all stored warnings.
c                 B    [        U 5      [        [        U 5      5      -   $ r   )r  id)r  s    r   key WarningsFixer.flush.<locals>.key  s    
 s8c"S'l**r   )r  N)sortedr  itemsr   r  clear)r#   r  rd   r  r   messagesr   s          r   flushWarningsFixer.flush  sc    	+ 7=$$&C712(Xxh'&&shG (71 	r   c                     g r   r   r   s    r   r   WarningsFixer.__enter__  s    r   c                 $    U R                  5         g r   )r$  )r#   exc_type	exc_value	tracebacks       r   r   WarningsFixer.__exit__  s    

r   )r
  r  NN)r)   r*   r+   r,   r-   r!   
contextlibcontextmanagerr  r$  r   r   r.   r   r   r   r  r    s5    *
 = =("r   r  c                   H   ^  \ rS rSrSU 4S jjr\S 5       rS rS rSr	U =r
$ )
NumbaErrori  c                    > Xl         X l        U(       a  [        5       R                  nOS nU(       a  U< SUR	                  5       < S3nOU< n[
        [        U ]  U" U5      5        g )Nc                     U $ r   r   r   s    r   r   &NumbaError.__init__.<locals>.highlight  r   r   r   )r   r   r   r   r"   r    r1  r!   )r#   r   r   r$   r   new_msgr%   s         r   r!   NumbaError.__init__  sP    !**I $'9G!Gj$(7);<r   c                 R     U R                   $ ! [         a    / =U l         nUs $ f = fr   )	_contextsr   )r#   lsts     r   contextsNumbaError.contexts%  s1    	>>! 	#%%DNSJ	s    &&c                     U R                   R                  U5        [        5       R                  S5      [        5       R	                  S5      -   nUR                  X5      nU4U l        U $ )z^
Add contextual info.  The exception message is expanded with the new
contextual information.
z{0}
zDuring: {1})r:  appendr   r   rd   r   r   )r#   r   fnewmsgs       r   add_contextNumbaError.add_context-  sV    
 	S!Kw')+*>*>}*MM$$I	r   c                 4    U4U R                   SS -   U l         g)z4
Change the error message to the given new message.
   N)r   )r#   new_messages     r   patch_messageNumbaError.patch_message8  s     !NTYYqr]2	r   )r8  r   r   r   r'   )r)   r*   r+   r,   r!   propertyr:  r@  rE  r.   r/   r0   s   @r   r1  r1    s+    =  	3 3r   r1  c                       \ rS rSrSrSrg)UnsupportedErrori?  z?
Numba does not have an implementation for this functionality.
r   Nr4   r   r   r   rI  rI  ?  r9   r   rI  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )UnsupportedBytecodeErroriE  z,Unsupported bytecode is non-recoverable
    c                 .   > [         TU ]  U SU 35        g )Nz. Raised from )r    r!   r#   r   r   r%   s      r   r!   !UnsupportedBytecodeError.__init__H  s    C5se45r   r   r   r(   r0   s   @r   rK  rK  E  s    6 6r   rK  c                       \ rS rSrSrSrg)UnsupportedRewriteErroriL  z)UnsupportedError from rewrite passes
    r   Nr4   r   r   r   rP  rP  L  
    r   rP  c                       \ rS rSrSrSrg)IRErroriR  z/
An error occurred during Numba IR generation.
r   Nr4   r   r   r   rS  rS  R       	r   rS  c                       \ rS rSrSrSrg)RedefinedErroriY  zM
An error occurred during interpretation of IR due to variable redefinition.
r   Nr4   r   r   r   rV  rV  Y  rT  r   rV  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )NotDefinedErrori`  zC
An undefined variable is encountered during interpretation of IR.
c                 >   > Xl         SU-  n[        [        U ]  X2S9  g )NzJThe compiler failed to analyze the bytecode. Variable '%s' is not defined.r   )namer    rX  r!   )r#   r[  r   r   r%   s       r   r!   NotDefinedError.__init__e  s)    	/156ot-c-;r   )r[  r   r(   r0   s   @r   rX  rX  `  s    < <r   rX  c                       \ rS rSrSrSrg)VerificationErroril  a  
An error occurred during IR verification. Once Numba's internal
representation (IR) is constructed it is then verified to ensure that
terminators are both present and in the correct places within the IR. If
it is the case that this condition is not met, a VerificationError is
raised.
r   Nr4   r   r   r   r^  r^  l  s     	r   r^  c                       \ rS rSrSrSrg)DeprecationErroriw  z
Functionality is deprecated.
r   Nr4   r   r   r   r`  r`  w  rT  r   r`  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )LoweringErrori~  z$
An error occurred during lowering.
c                 (   > [         [        U ]  XS9  g NrZ  )r    rb  r!   rM  s      r   r!   LoweringError.__init__  s    mT+C+9r   r   r   r(   r0   s   @r   rb  rb  ~  s    : :r   rb  c                       \ rS rSrSrSrg)UnsupportedParforsErrori  zE
An error occurred because parfors is not supported on the platform.
r   Nr4   r   r   r   rg  rg    rT  r   rg  c                       \ rS rSrSrSrg)ForbiddenConstructi  zF
A forbidden Python construct was encountered (e.g. use of locals()).
r   Nr4   r   r   r   ri  ri    rT  r   ri  c                       \ rS rSrSrSrg)TypingErrori  z
A type inference failure.
r   Nr4   r   r   r   rk  rk    rT  r   rk  c                   ,   ^  \ rS rSrSU 4S jjrSrU =r$ )UntypedAttributeErrori  c                    > [        USS 5      nUb  U[        :X  a  SU-  nOSnUR                  XS9n[        [        U ]  XSS9  g )NpymodzPUse of unsupported NumPy function 'numpy.%s' or unsupported use of the function.z)Unknown attribute '{attr}' of type {type})typeattrrZ  )getattrnpr   r    rm  r!   )r#   valuerq  r   moduler   r%   s         r   r!   UntypedAttributeError.__init__  sW    .&B,9<@AC >C**%*3C#T3C3Ar   r   r   )r)   r*   r+   r,   r!   r.   r/   r0   s   @r   rm  rm    s    	B 	Br   rm  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ByteCodeSupportErrori  z9
Failure to extract the bytecode of the user's function.
c                 (   > [         [        U ]  XS9  g rd  )r    rx  r!   rM  s      r   r!   ByteCodeSupportError.__init__  s    "D232@r   r   r   r(   r0   s   @r   rx  rx    s    A Ar   rx  c                       \ rS rSrSrSrg)CompilerErrori  z(
Some high-level error in the compiler.
r   Nr4   r   r   r   r|  r|    rT  r   r|  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ConstantInferenceErrori  z$
Failure during constant inference.
c                 (   > [         [        U ]  XS9  g rd  )r    r~  r!   )r#   rt  r   r%   s      r   r!   ConstantInferenceError.__init__  s    $d4U4Dr   r   r   r(   r0   s   @r   r~  r~    s    E Er   r~  c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InternalErrori  z:
For wrapping internal error occurred within the compiler
c                 J   > [         [        U ]  [        U5      5        Xl        g r   )r    r  r!   r  old_exception)r#   	exceptionr%   s     r   r!   InternalError.__init__  s    mT+C	N;&r   )r  r(   r0   s   @r   r  r    s    ' 'r   r  c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )InternalTargetMismatchErrori  zPFor signalling a target mismatch error occurred internally within the
compiler.
c                 V   > UR                  5        SU SU S3n[        TU ]	  U5        g )NzL being resolved on a target from which it does not inherit. Local target is z, declared target class is r   )titler    r!   )r#   kind	target_hwhw_clazzr   r%   s        r   r!   $InternalTargetMismatchError.__init__  s:    **,  //8k :""*1. 	r   r   r(   r0   s   @r   r  r    s     r   r  c                       \ rS rSrSrSrg)NonexistentTargetErrori  zDFor signalling that a target that does not exist was requested.
    r   Nr4   r   r   r   r  r    rQ  r   r  c                       \ rS rSrSrSrg)RequireLiteralValuei  z^
For signalling that a function's typing requires a constant value for
some of its arguments.
r   Nr4   r   r   r   r  r    s     	r   r  c                   B   ^  \ rS rSrSrSU 4S jjrS rS rS rSr	U =r
$ )	ForceLiteralArgi  zA Pseudo-exception to signal the dispatcher to type an argument literally

Attributes
----------
requested_args : frozenset[int]
    requested positions of the arguments.
c                 V   > [         [        U ]  SUS9  [        U5      U l        X l        g)z
Parameters
----------
arg_indices : Sequence[int]
    requested positions of the arguments.
fold_arguments: callable
    A function ``(tuple, dict) -> tuple`` that binds and flattens
    the ``args`` and ``kwargs``.
loc : numba.ir.Loc or None
z=Pseudo-exception to force literal arguments in the dispatcherrZ  N)r    r  r!   	frozensetrequested_argsfold_arguments)r#   arg_indicesr  r   r%   s       r   r!   ForceLiteralArg.__init__  s4     	ot-K 	. 	
 (4,r   c                 \    SSK Jn  [        U R                  UU R                  S9nU" X05      $ )z)Bind the fold_arguments function
        r   )chain_exceptionrZ  )numba.core.utilsr  r  r  r   )r#   r  r  es       r   bind_fold_arguments#ForceLiteralArg.bind_fold_arguments  s-     	5D// $*q''r   c                     [        U[        5      (       d*  Sn[        UR                  [        [	        U5      5      5      e[        U R
                  UR
                  -  5      $ )z=Returns a new instance by or'ing the requested_args.
        z)*other* must be a {} but got a {} instead)r  r  	TypeErrorr   rp  r  )r#   otherms      r   combineForceLiteralArg.combine	  sL     %11;AAHH_d5kBCCt22U5I5IIJJr   c                 $    U R                  U5      $ )z$Same as self.combine(other)
        )r  )r#   r  s     r   __or__ForceLiteralArg.__or__  s     ||E""r   )r  r  r-  )r)   r*   r+   r,   r-   r!   r  r  r  r.   r/   r0   s   @r   r  r    s"    -$(K# #r   r  c                       \ rS rSrSrSrg)LiteralTypingErrori  z"
Failure in typing a Literal type
r   Nr4   r   r   r   r  r    rT  r   r  c                       \ rS rSrSrg)NumbaValueErrori$  r   Nr)   r*   r+   r,   r.   r   r   r   r  r  $      r   r  c                       \ rS rSrSrg)NumbaTypeErrori(  r   Nr  r   r   r   r  r  (  r  r   r  c                       \ rS rSrSrg)NumbaAttributeErrori,  r   Nr  r   r   r   r  r  ,  r  r   r  c                       \ rS rSrSrg)NumbaAssertionErrori0  r   Nr  r   r   r   r  r  0  r  r   r  c                       \ rS rSrSrg)NumbaNotImplementedErrori4  r   Nr  r   r   r   r  r  4  r  r   r  c                       \ rS rSrSrg)NumbaKeyErrori8  r   Nr  r   r   r   r  r  8  r  r   r  c                       \ rS rSrSrg)NumbaIndexErrori<  r   Nr  r   r   r   r  r  <  r  r   r  c                       \ rS rSrSrg)NumbaRuntimeErrori@  r   Nr  r   r   r   r  r  @  r  r   r  c                 &    U R                   " U0 UD6$ r   )r   )fmtr   rN   s      r   _format_msgr  D  s    ::t&v&&r   c              /     #    UR                  SS5      nUb9  UR                  R                  [        5      (       d  [        R                  U5         Sv   g! [         a!  nUR                  [        XU5      5        e SnAff = f7f)a,  
A contextmanager that prepend contextual information to any exception
raised within.

The first argument is a message that describes the context.  It can be a
format string.  If there are additional arguments, it will be used as
``fmt_.format(*args, **kwargs)`` to produce the final message string.
r   N)	getrd   
startswith_numba_pathloc_infoupdater1  r@  r  )fmt_r   rN   r   r  s        r   new_error_contextr  L  si      **UD
!C
s||66{CC 	k$f56s*   ABA B
B!A==BB_)~r-   abcr.  osr   numba.core.configr   numpyrs  collectionsr   	functoolsr   r   __all__r   Warningr   r2   r   r7   PendingDeprecationWarningr;   r>   rA   rD   rG   rJ   rQ   rT   rW   ABCMetarZ   rp   r   coloramarr  colorama_versiontuplesplitintr   r   ImportErrorenvironr  r   r   r   r   r   objectr   r   r   BLUEYELLOWWHITEGREENREDr   BLACKMAGENTACYANr   r   r   r   rM   feedback_detailsunsupported_error_infointerpreter_error_infoconstant_inference_infotyping_error_infor   reportable_issue_infodicterror_extrasr  r  	Exceptionr1  rI  rK  rP  rS  rV  rX  r^  r`  rb  rg  ri  rk  rm  rx  r|  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  pathdirname__file__r  r  r/  r  globalsr!  r  r  rp  r  )r   r[  rt  s   000r   <module>r     s  
   	    #   	I7 I.l l,> \3L  \ l  << <3 L  S[[ 6 2 m
 x@.44S9:9c!f9:;iG2 	c
 
zz~~@$GG HJ ;:V D D F #'$(&*&*'+#'+F: "&#';;%)ZZ%)ZZ&*hh"'//5F9 #'))$(JJ&*ll&*jj'+xx#(??6F: "&#';;%)\\%)YY&*hh"'//5F9 %)JJ&*jj(,

(,		)-%*__8F< :&M&20 &2P        , *,  v$:  !*X 2\ 4] %<! "<9F 9x'3 '3Tz 6y 6	. 		j 		W 		<g 	<	 		z 	:J :	j 		 		* 	
BK 
BA: A	J 	EZ E'J '- 	] 		+ 	/#j /#d	 		k 		[ 		+ 		+ 		{ 		K 		k 		
 	' ggooh'  ( gioo&7 9&7]d??3' ,6ud,C 59g"67 &7 9 9I ;  * 05l9s=   #S> <S9AS> *T
TT,T9S> >TT