o
    "ir                  	   @   s2   d Z ddlZg fdededee defddZdS )	zLine-cache functionality.    Ncls	func_namelinesreturnc                 C   sn   d}d}	 d || jt| d| j|}|s|S td|d||f}tj|||kr-|S |d7 }d| }q)	z
    Create a "filename" suitable for a function being generated.

    If *lines* are provided, insert them in the first free spot or stop
    if a duplicate is found.
        Tz<cattrs generated {} {}.{}{}>__qualname__
N-)	format
__module__getattr__name__lenjoin	linecachecache
setdefault)r   r   r   extracountunique_filename
cache_line r   N/var/www/html/premium_crap/venv/lib/python3.10/site-packages/cattrs/gen/_lc.pygenerate_unique_filename   s   
r   )__doc__r   typestrlistr   r   r   r   r   <module>   s    &