
    Xh                    L    d dl mZ d dlmZ d dlmZ erd dlmZmZ ddZ	d	dZ
y)
    )annotations)TYPE_CHECKING)DurationFormattingException)DateDurationDurationc                   | j                   j                  dk(  xrO | j                   j                  dk(  xr4 | j                   j                  dk(  xr | j                   j                  dk(  }| j
                  j                  dk(  xr4 | j
                  j                  dk(  xr | j
                  j                  dk(  }| j                   j                  dk  xrO | j                   j                  dk  xr4 | j                   j                  dk  xr | j                   j                  dk  }| j
                  j                  dk  xr4 | j
                  j                  dk  xr | j
                  j                  dk  }|s|s|r|ryy|s|ryy|s|ryy)Nr      )	dateyearsmonthsdaysweekstimehoursminutesseconds)durationis_date_zerois_time_zerois_date_negativeis_time_negatives        R/var/www/html/myenv/lib/python3.12/site-packages/isoduration/formatter/checking.pycheck_global_signr      s   q  	%MM  A%	%MM!#	% MM1$	  	q  	'MM!!Q&	'MM!!Q&  	q  	%MM  A%	%MM!#	% MM1$	  	q  	'MM!!Q&	'MM!!Q&   0  
 	     c                |    | j                   r0| j                  s| j                  s| j                  rt	        d      y y )Nz2Weeks are incompatible with other date designators)r   r   r   r   r   )date_durations    r   validate_date_durationr   1   s?    -"6"6-:L:L-D  ;M r   N)r   r   returnint)r   r   r   None)
__future__r   typingr    isoduration.formatter.exceptionsr   isoduration.typesr   r   r   r    r   r   <module>r'      s    "   H8#Lr   