Files
order/.venv/Lib/site-packages/blinker/__pycache__/base.cpython-312.pyc

237 lines
22 KiB
Plaintext
Raw Normal View History

2025-08-27 21:11:48 +08:00
<EFBFBD>
M}<7D>g<EFBFBD>O<00><01> <00>dZddlmZddlZddlmZddlmZddl m
Z
ddl m Z ddl mZdd l mZdd
l mZdd l mZdd l mZdd l mZddl mZddl mZej,r<>ddlZej2dej4dej6f<00><12>Zej2d<13>Zej<d<14>Zej4ej4eefgej4eej@effZ!ej4ej4eej@efgej4eeffZ"ed<15>Z#de#_dZ$Gd<17>d<18>Z%e%d<19>Z&Gd<1A>de%<25>Z'Gd<1C>de(<28>Z)Gd<1E>de <0C>Z*e)<29>jVZ+y) a+Signals and events.
A small implementation of signals, inspired by a snippet of Django signal
API client code seen in a blog post. Signals are first-class objects and
each manages its own receivers and message emission.
The :func:`signal` function provides singleton behavior for named signals.
<EFBFBD>)<01> annotationsN)<01> defaultdict)<01>contextmanager)<01>warn)<01>WeakValueDictionary)<01>annotatable_weakref)<01>hashable_identity)<01> IdentityType)<01>is_coroutine_function)<01> lazy_property)<01> reference)<01>symbol)<01> WeakTypes<65>
T_callable.)<01>bound<6E>T<>P<>ANYzToken for "any sender".c<01>H<00>eZdZdZeZedd<02><04>Zedd<03><04>Zddd<05>Zedf dd<07>Z d dd<08>Z
e ef dd <09><05>Z e d d
<EFBFBD><04>Z ef d!d <0B>Zdd <0C> d"d <0A>Zdd<0E> d#d<0F>Zd$d<10>Zd%d<11>Z d&d<12>Zefd'd<13>Zd(d<14>Zd)d<15>Zd*d<16>Zd+d<17>Zd+d<18>Zy),<2C>SignalzA notification emitter.c<01><00>td<01><02>S)z<>Emitted after each :meth:`connect`.
The signal sender is the signal instance, and the :meth:`connect`
arguments are passed through: *receiver*, *sender*, and *weak*.
.. versionadded:: 1.2
z"Emitted after a receiver connects.<2E><01>doc<6F>r<00><01>selfs <20>5D:\mooc\order\.venv\Lib\site-packages\blinker/base.py<70>receiver_connectedzSignal.receiver_connected2s<00><00><16>><3E>?<3F>?<3F>c<01><00>td<01><02>S)a Emitted after :meth:`disconnect`.
The sender is the signal instance, and the :meth:`disconnect` arguments
are passed through: *receiver* and *sender*.
Note, this signal is emitted **only** when :meth:`disconnect` is
called explicitly.
The disconnect signal can not be emitted by an automatic disconnect
(due to a weakly referenced receiver or sender going out of scope),
as the receiver and/or sender instances are no longer available for
use at the time this signal would be emitted.
An alternative approach is available by subscribing to
:attr:`receiver_connected` and setting up a custom weakref cleanup
callback on weak receivers and senders.
.. versionadded:: 1.2
z%Emitted after a receiver disconnects.rrrs r<00>receiver_disconnectedzSignal.receiver_disconnected>s<00><00>,<16>A<>B<>BrNc<01><><00>|r||_i|_d|_tt<00>|_tt<00>|_i|_y)zt
:param doc: optional. If provided, will be assigned to the signal's
__doc__ attribute.
FN)<08>__doc__<5F> receivers<72>is_mutedr<00>set<65> _by_receiver<65>
_by_sender<EFBFBD> _weak_senders)rrs r<00>__init__zSignal.__init__VsA<00><00> <0F><1E>D<EFBFBD>L<EFBFBD>PR<01><04><0E><1D><04> <0A>CN<43>s<EFBFBD>CS<43><04><19>AL<41>S<EFBFBD>AQ<41><04><0F>FH<46><04>rTc<01><><00>t|<01>}|rt||j<00>}||_n|}|turt
}n t|<02>}|j j||<05>|j|j|<04>|j|j|<06>~|turI||jvr; t||j<00>}||_ |jj||<07>~d|jvr6|j j r |j j#||||<03><02>t j r$|t ur t j#||||<03><04>|S|S#t$rY<00><>wxYw#t$r}|j%||<02>|<08>d}~wwxYw#t$r}|j%||<02>|<08>d}~wwxYw)aaConnect *receiver* to signal events sent by *sender*.
:param receiver: A callable. Will be invoked by :meth:`send` with
`sender=` as a single positional argument and any ``kwargs`` that
were provided to a call to :meth:`send`.
:param sender: Any object or :obj:`ANY`, defaults to ``ANY``.
Restricts notifications delivered to *receiver* to only those
:meth:`send` emissions sent by *sender*. If ``ANY``, the receiver
will always be notified. A *receiver* may be connected to
multiple *sender* values on the same Signal through multiple calls
to :meth:`connect`.
:param weak: If true, the Signal will hold a weakref to *receiver*
and automatically disconnect when *receiver* goes out of scope or
is garbage collected. Defaults to True.
r)<03>receiver<65>sender<65>weakN)<03> receiver_arg<72>
sender_arg<EFBFBD>weak_arg)r r <00>_cleanup_receiver<65> receiver_idr<00>ANY_IDr$<00>
setdefaultr(<00>addr'r)<00>_cleanup_sender<65> sender_id<69> TypeError<6F>__dict__r<00>send<6E>
disconnect) rr,r-r.r3<00> receiver_refr8<00>
sender_ref<EFBFBD>es r<00>connectzSignal.connectjs<><00><00>*(<28><08>1<> <0B> <10>$<24>X<EFBFBD>t<EFBFBD>/E<>/E<>F<>L<EFBFBD>'2<>L<EFBFBD> $<24>#<23>L<EFBFBD> <11>S<EFBFBD>=<3D><1E>I<EFBFBD>)<29>&<26>1<>I<EFBFBD> <0C><0E><0E>!<21>!<21>+<2B>|<7C><<3C> <0C><0F><0F> <09>"<22>&<26>&<26>{<7B>3<> <0C><19><19>+<2B>&<26>*<2A>*<2A>9<EFBFBD>5<> <18> <11><13> <1C><19>$<24>2D<32>2D<32>!D<> <1F>&<26>v<EFBFBD>t<EFBFBD>/C<>/C<>D<>
<EFBFBD>'0<>
<EFBFBD>$<24><15>"<22>"<22>-<2D>-<2D>i<EFBFBD><1A>D<><1E> <20>4<EFBFBD>=<3D>=<3D> 0<>T<EFBFBD>5L<35>5L<35>5V<35>5V<35> <18><14>'<27>'<27>,<2C>,<2C><18>8<EFBFBD>F<EFBFBD><14>-<2D><12> <1E> '<27> '<27>D<EFBFBD>8J<38>,J<> <18>"<22>'<27>'<27><18>x<EFBFBD>F<EFBFBD>T<EFBFBD>(<28><12> <18><0F>x<EFBFBD><0F><>/<1D> <15><14> <15><><1D> <18><14><0F><0F><08>&<26>1<><17><07><> <18><><1D> <18><14><0F><0F><08>&<26>1<><17><07><> <18>sB<00>8E,<00>E;<00>F <00>, E8<03>7E8<03>; F<03>F<03>F<03> G<03>)F=<03>=Gc<01><00><00><01><02>d<02><00><01>fd<01> }|S)aKConnect the decorated function as a receiver for *sender*.
:param sender: Any object or :obj:`ANY`. The decorated function
will only receive :meth:`send` emissions sent by *sender*. If
``ANY``, the receiver will always be notified. A function may be
decorated multiple times with differing *sender* values.
:param weak: If true, the Signal will hold a weakref to the
decorated function and automatically disconnect when *receiver*
goes out of scope or is garbage collected. Unlike
:meth:`connect`, this defaults to False.
The decorated function will be invoked by :meth:`send` with
`sender=` as a single positional argument and any ``kwargs`` that
were provided to the call to :meth:`send`.
.. versionadded:: 1.1
c<01>.<00><03><00>j|<00><02><03>|S<00>N)r@)<04>fnrr-r.s <20><><EFBFBD>r<00> decoratorz%Signal.connect_via.<locals>.decorator<6F>s<00><><00> <10>L<EFBFBD>L<EFBFBD><12>V<EFBFBD>T<EFBFBD> *<2A><15>Ir)rDr<00>returnr<00>)rr-r.rEs``` r<00> connect_viazSignal.connect_via<69>s<00><><00>0 <16><19>rc#<01><>K<00>|j||d<01><02> d<03><02>|j|<01>y#t$r}|j|<01>|<03>d}~wwxYw<01>w)ahExecute a block with the signal temporarily connected to *receiver*.
:param receiver: a receiver callable
:param sender: optional, a sender to filter on
This is a context manager for use in the ``with`` statement. It can
be useful in unit tests. *receiver* is connected to the signal for
the duration of the ``with`` block, and will be disconnected
automatically when exiting the block:
.. code-block:: python
with on_ready.connected_to(receiver):
# do stuff
on_ready.send(123)
.. versionadded:: 1.1
F)r-r.N)r@r<<00> Exception)rr,r-r?s r<00> connected_tozSignal.connected_to<74>sT<00><00><><00>. <0A> <0C> <0C>X<EFBFBD>f<EFBFBD>5<EFBFBD> <0C>9<> &<26><16>J<EFBFBD>
<11>O<EFBFBD>O<EFBFBD>H<EFBFBD> %<25><> <19> <14> <10>O<EFBFBD>O<EFBFBD>H<EFBFBD> %<25><13>G<EFBFBD><47> <14>s$<00>A<01>.<00>A<01> A<03>A
<03>
A<03>Ac#<01>rK<00>d|_ d<02><03> d|_y#t$r}|<01>d}~wwxYw#d|_wxYw<01>w)z\Context manager for temporarily disabling signal.
Useful for test purposes.
TNF)r%rJ)rr?s r<00>mutedz Signal.muted<65>sB<00><00><><00>
<1D><04> <0A> "<22><16>J<EFBFBD>"<22>D<EFBFBD>M<EFBFBD><4D><19> <14><13>G<EFBFBD><47> <14><>"<22>D<EFBFBD>M<EFBFBD>s$<00>7<01><00>7<01> (<03>#<03>(<03>+<00> 4<03>7c<01>F<00>tdt<00>|j||<02>S)agAn alias for :meth:`connected_to`.
:param receiver: a receiver callable
:param sender: optional, a sender to filter on
.. versionadded:: 0.9
.. versionchanged:: 1.1
Renamed to :meth:`connected_to`. ``temporarily_connected_to`` was
deprecated in 1.2 and will be removed in a subsequent version.
zAtemporarily_connected_to is deprecated; use connected_to instead.)r<00>DeprecationWarningrK)rr,r-s r<00>temporarily_connected_tozSignal.temporarily_connected_to<74>s'<00><00> <0A> O<> <1E>
<EFBFBD><14> <20> <20><18>6<EFBFBD>2<>2r)<01>_async_wrapperc<01><><00>|jrgS|j|<02>}g}|j|<02>D]>}t|<05>r|<01> t d<01><00>||<05>}||fi|<03><01>}|j ||f<02><00>@|S)aEmit this signal on behalf of *sender*, passing on ``kwargs``.
Returns a list of 2-tuples, pairing receivers with their return
value. The ordering of receiver notification is undefined.
:param sender: Any object or ``None``. If omitted, synonymous
with ``None``. Only accepts one positional argument.
:param _async_wrapper: A callable that should wrap a coroutine
receiver and run it when called synchronously.
:param kwargs: Data to be sent to receivers.
z#Cannot send to a coroutine function<6F>r%<00>_extract_sender<65> receivers_forr <00> RuntimeError<6F>append)rrQr-<00>kwargs<67>resultsr,<00>results rr;z Signal.sends<><00><00>$ <10>=<3D>=<3D><15>I<EFBFBD><15>%<25>%<25>f<EFBFBD>-<2D><06><14><07><1C>*<2A>*<2A>6<EFBFBD>2<>H<EFBFBD>$<24>X<EFBFBD>.<2E>!<21>)<29>&<26>'L<>M<>M<>)<29>(<28>3<><08><1D>f<EFBFBD>/<2F><06>/<2F>F<EFBFBD> <13>N<EFBFBD>N<EFBFBD>H<EFBFBD>f<EFBFBD>-<2D> .<2E> 3<><17>r)<01> _sync_wrapperc<00><01>K<00>|jrgS|j|<02>}g}|j|<02>D]F}t|<05>s|<01> t d<02><00>||<05>}||fi|<03><01><01>d{<00><02><03>}|j ||f<02><00>H|S7<00><1B>w)aEmit this signal on behalf of *sender*, passing on ``kwargs``.
Returns a list of 2-tuples, pairing receivers with their return
value. The ordering of receiver notification is undefined.
:param sender: Any object or ``None``. If omitted, synonymous
with ``None``. Only accepts one positional argument.
:param _sync_wrapper: A callable that should wrap a synchronous
receiver and run it when awaited.
:param kwargs: Data to be sent to receivers.
Nz'Cannot send to a non-coroutine functionrS)rr[r-rXrYr,rZs r<00>
send_asynczSignal.send_async0s<><00><00><><00>$ <10>=<3D>=<3D><15>I<EFBFBD><15>%<25>%<25>f<EFBFBD>-<2D><06><14><07><1C>*<2A>*<2A>6<EFBFBD>2<>H<EFBFBD>(<28><18>2<> <20>(<28>&<26>'P<>Q<>Q<>(<28><18>2<><08>#<23>F<EFBFBD>5<>f<EFBFBD>5<>5<>F<EFBFBD> <13>N<EFBFBD>N<EFBFBD>H<EFBFBD>f<EFBFBD>-<2D> .<2E> 3<><17><0E>6<>s<00>A"B<01>$B<06>%Bc<01><><00>|js*|r&t|<01>dkDrtdt|<01><00>d<03><03><00>gSt|<01>dk(rd}|St|<01>dkDrtdt|<01><00>d<03><03><00>|d}|S)N<>z-send() accepts only one positional argument, z givenr)r$<00>lenr9<00>rr-s rrTzSignal._extract_senderPs<><00><00><13>~<7E>~<7E>$<24><03>F<EFBFBD> <0B>a<EFBFBD><0F><1F>C<>C<EFBFBD><06>K<EFBFBD>=<3D>PV<50>W<><12><12><16>I<EFBFBD>
<0F>v<EFBFBD>;<3B>!<21> <1B><19>F<EFBFBD><16> <0A> <11><16>[<5B>1<EFBFBD>_<EFBFBD><1B>?<3F><03>F<EFBFBD> <0B>}<7D>F<EFBFBD>S<><0E> <0E><1C>A<EFBFBD>Y<EFBFBD>F<EFBFBD><15> rc<01><><00>|jsy|jtry|turyt |<01>|jvS)z<>True if there is probably a receiver for *sender*.
Performs an optimistic check only. Does not guarantee that all
weakly referenced receivers are still alive. See
:meth:`receivers_for` for a stronger search.
FT)r$r(r4rr ras r<00>has_receivers_forzSignal.has_receivers_forgs;<00><00><14>~<7E>~<7E><18> <0F>?<3F>?<3F>6<EFBFBD> "<22><17> <11>S<EFBFBD>=<3D><18> <20><16>(<28>D<EFBFBD>O<EFBFBD>O<EFBFBD>;<3B>;rc#<01><>K<00>|jr<>t|<01>}||jvr$|jt|j|z}n!|jtj <00>}|D]V}|jj |<04>}|<05><01>!t |t<00>r"|<05>}|<06>|j|t<00><00>Q|}|<05><01><00>Xyy<01>w)z2Iterate all live receivers listening for *sender*.N) r$r r(r4<00>copy<70>get<65>
isinstancer<00> _disconnect)rr-r8<00>idsr3r,<00>strongs rrUzSignal.receivers_forws<><00><00><><00>
<10>><3E>><3E>)<29>&<26>1<>I<EFBFBD><18>D<EFBFBD>O<EFBFBD>O<EFBFBD>+<2B><1A>o<EFBFBD>o<EFBFBD>f<EFBFBD>-<2D><04><0F><0F> <09>0J<30>J<><03><1A>o<EFBFBD>o<EFBFBD>f<EFBFBD>-<2D>2<>2<>4<><03>"<22> <0B><1F>><3E>><3E>-<2D>-<2D>k<EFBFBD>:<3A><08><1B>#<23><1C><1D>h<EFBFBD> <09>2<>%<25>Z<EFBFBD>F<EFBFBD><1D>~<7E><1C>(<28>(<28><1B>f<EFBFBD>=<3D> <20>%<25>H<EFBFBD><1E><0E> #<23> <1A>s<00>CC
c<01><><00>|turt}n t|<02>}t|<01>}|j||<03>d|jvr6|j
j r|j
j|||<02><02>yyy)aDisconnect *receiver* from this signal's events.
:param receiver: a previously :meth:`connected<connect>` callable
:param sender: a specific sender to disconnect from, or :obj:`ANY`
to disconnect from all senders. Defaults to ``ANY``.
r!)r,r-N)rr4r rhr:r!r$r;)rr,r-r8r3s rr<zSignal.disconnect<63>sv<00><00> <12>S<EFBFBD>=<3D><1E>I<EFBFBD>)<29>&<26>1<>I<EFBFBD>'<27><08>1<> <0B> <0C><18><18><1B>i<EFBFBD>0<> $<24>t<EFBFBD>}<7D>}<7D> 4<><14>*<2A>*<2A>4<>4<> <10> &<26> &<26> +<2B> +<2B>D<EFBFBD>8<EFBFBD>F<EFBFBD> +<2B> S<>5<> 5rc<01>`<00>|tk(ri|jj|d<01>r0|jj <00>D]}|j |<01><00>|j j|d<00>y|j|j |<01>|j|j |<02>y)NF)r4r'<00>popr(<00>values<65>discardr$)rr3r8<00>buckets rrhzSignal._disconnect<63>s<><00><00> <14><06> <1E><13> <20> <20>$<24>$<24>[<5B>%<25>8<>"<22>o<EFBFBD>o<EFBFBD>4<>4<>6<>F<EFBFBD><1A>N<EFBFBD>N<EFBFBD>;<3B>/<2F>7<> <10>N<EFBFBD>N<EFBFBD> <1E> <1E>{<7B>D<EFBFBD> 1<> <10>O<EFBFBD>O<EFBFBD>I<EFBFBD> &<26> .<2E> .<2E>{<7B> ;<3B> <10> <1D> <1D>k<EFBFBD> *<2A> 2<> 2<>9<EFBFBD> =rc<01>t<00>|jtjt|j<00>t
<00>y)z'Disconnect a receiver from all senders.N)rh<00>t<>castr
r3r4)rr=s rr2zSignal._cleanup_receiver<65>s#<00><00> <0C><18><18><11><16><16> <0C>l<EFBFBD>.F<>.F<>G<><16>Prc<01><00>tjt|j<00>}|tk7sJ<00>|j
j |d<01>|jj |d<02>D] }|j|j|<02><00>"y)z'Disconnect all receivers from a sender.NrG)
rrrsr
r8r4r)rmr(r'ro)rr>r8r3s rr7zSignal._cleanup_sender<65>sp<00><00><15>F<EFBFBD>F<EFBFBD><<3C><1A>)=<3D>)=<3D>><3E> <09><18>F<EFBFBD>"<22>"<22>"<22> <0C><1A><1A><1E><1E>y<EFBFBD>$<24>/<2F><1F>?<3F>?<3F>.<2E>.<2E>y<EFBFBD>"<22>=<3D>K<EFBFBD> <10> <1D> <1D>k<EFBFBD> *<2A> 2<> 2<>9<EFBFBD> =<3D>>rc<01><><00>|j|jfD]8}t|j<00><00>D]\}}|r<01> |j |d<01><00><00>:y)arPrune unused sender/receiver bookkeeping. Not threadsafe.
Connecting & disconnecting leave behind a small amount of bookkeeping
for the receiver and sender values. Typical workloads using Blinker,
for example in most web apps, Flask, CLI scripts, etc., are not
adversely affected by this bookkeeping.
With a long-running Python process performing dynamic signal routing
with high volume- e.g. connecting to function closures, "senders" are
all unique object instances, and doing all of this over and over- you
may see memory usage will grow due to extraneous bookkeeping. (An empty
set() for each stale sender/receiver pair.)
This method will prune that bookkeeping away, with the caveat that such
pruning is not threadsafe. The risk is that cleanup of a fully
disconnected receiver/sender pair occurs while another thread is
connecting that same pair. If you are in the highly dynamic, unique
receiver/sender situation that has lead you to this method, that
failure mode is perhaps not a big deal for you.
N)r(r'<00>list<73>itemsrm)r<00>mapping<6E>_idrps r<00>_cleanup_bookkeepingzSignal._cleanup_bookkeeping<6E>sG<00><00>*<1D><0F><0F><14>):<3A>):<3A>;<3B>G<EFBFBD>#<23>G<EFBFBD>M<EFBFBD>M<EFBFBD>O<EFBFBD>4<> <0B><03>V<EFBFBD><1D><1B>K<EFBFBD>K<EFBFBD><03>T<EFBFBD>*<2A> 5<><rc<01><><00>|jj<00>|jj<00>|jj<00>|jj<00>y)z4Throw away all signal state. Useful for unit tests.N)r)<00>clearr$r(r'rs r<00> _clear_statezSignal._clear_state<74>sF<00><00> <0C><1A><1A> <20> <20>"<22> <0C><0E><0E><1C><1C><1E> <0C><0F><0F><1D><1D><1F> <0C><19><19><1F><1F>!r)rFrrC)r<00>
str | NonerF<00>None)r,rr-<00>t.Anyr.<00>boolrFr)F)r-r<>r.r<>rFz$t.Callable[[T_callable], T_callable])r,<00>
t.Callabler-r<>rF<00>t.Generator[None, None, None])rFr<>)r,r<>r-r<>rFzt.ContextManager[None])r-r<>rQzAsyncWrapperType | NonerXr<>rF<00>list[tuple[t.Callable, t.Any]])r-r<>r[zSyncWrapperType | NonerXr<>rFr<>)r-r<>rFr<>)r-r<>rFr<>)r-r<>rFz9t.Generator[t.Callable | annotatable_weakref, None, None])r,r<>r-r<>rFr)r3r
r8r
rFr)r=rrFr)r>rrFr)rFr)<1A>__name__<5F>
__module__<EFBFBD> __qualname__r#rr rr!r*r@rHrrKrMrPr;r]rTrcrUr<rhr2r7rzr}rGrrrr+s<><00><00>!<21> <0E>C<EFBFBD><12> @<01><13> @<01><13>C<01><13>C<01>.I<01>*58<35>d<EFBFBD>D<18>"<22>D<18>,1<>D<18>?C<>D<18> <13>D<18>N+0<><19><1B><19>#'<27><19> -<2D><19><<14>47<34>&<26>"<22>&<26>,1<>&<26> &<26>&<26><14>&<26>><14>
"<22><14>
"<22>58<35>3<>"<22>3<>,1<>3<> <1F>3<>037<33><17><16><17>0<><17><18> <17>
(<28> <17>F15<31><17><16><17>.<2E><17><18> <17>
(<28> <17>@<16>.<<3C> <1F><1B><1F> B<><1F>.@C<01>T<01>.><3E>Q<01>><3E>+<2B>4"rra Sent by a :class:`Signal` after a receiver connects.
:argument: the Signal that was connected to
:keyword receiver_arg: the connected receiver
:keyword sender_arg: the sender to connect to
:keyword weak_arg: true if the connection to receiver_arg is a weak reference
.. deprecated:: 1.2
As of 1.2, individual signals have their own private
:attr:`~Signal.receiver_connected` and
:attr:`~Signal.receiver_disconnected` signals with a slightly simplified
call signature. This global signal is planned to be removed in 1.6.
c<01>"<00>eZdZdZddd<03>Zdd<04>Zy)<08> NamedSignalz%A named generic notification emitter.Nc<01>><00>tj||<02>||_yrC)rr*<00>name)rr<>rs rr*zNamedSignal.__init__<5F>s<00><00><0E><0F><0F><04>c<EFBFBD>"<22><19><04> rc<01>V<00>tj|<00>}|dd<00>d|j<00>d<03>S)N<><4E><EFBFBD><EFBFBD><EFBFBD>z; <20>>)r<00>__repr__r<5F>)r<00>bases rr<>zNamedSignal.__repr__<5F>s-<00><00><15><EFBFBD><EFBFBD>t<EFBFBD>$<24><04><16>s<EFBFBD><02>)<29><1B>B<EFBFBD>t<EFBFBD>y<EFBFBD>y<EFBFBD>m<EFBFBD>1<EFBFBD>-<2D>-rrC)r<><00>strrr~rFr)rFr<>)r<>r<>r<>r#r*r<>rGrrr<>r<><00>s<00><00>/<2F><19> .rr<>c<01><00>eZdZdZddd<03>Zy)<06> Namespacez%A mapping of signal names to signals.Nc<01>h<00> ||S#t$r!|j|t||<02><00>}|cYSwxYw<01>z<>Return the :class:`NamedSignal` *name*, creating it if required.
Repeated calls to this function will return the same signal object.
<20><03>KeyErrorr5r<><00>rr<>rrZs r<00>signalzNamespace.signal<00><<00><00>  <1A><17><04>:<3A> <1D><><17> <1A><19>_<EFBFBD>_<EFBFBD>T<EFBFBD>;<3B>t<EFBFBD>S<EFBFBD>+A<>B<>F<EFBFBD><19>M<EFBFBD> <1A><> <00><00>'1<03>1rC<00>r<>r<>rr~rFr<><00>r<>r<>r<>r#r<>rGrrr<>r<><00>s
<00><00>/<2F>
rr<>c<01><00>eZdZdZddd<03>Zy)<06> WeakNamespacea-A weak mapping of signal names to signals.
Automatically cleans up unused Signals when the last reference goes out
of scope. This namespace implementation exists for a measure of legacy
compatibility with Blinker <= 1.2, and may be dropped in the future.
.. versionadded:: 1.3
Nc<01>h<00> ||S#t$r!|j|t||<02><00>}|cYSwxYwr<>r<>r<>s rr<>zWeakNamespace.signalr<>r<>rCr<>r<>rGrrr<>r<>s <00><00><08>
rr<>),r#<00>
__future__r<00>typingrr<00> collectionsr<00>
contextlibr<00>warningsr<00>weakrefr<00>blinker._utilitiesrr r
r r r rr<00> TYPE_CHECKING<4E>typing_extensions<6E>te<74>TypeVar<61>Callable<6C>Anyrr<00> ParamSpecr<00> Awaitable<6C>AsyncWrapperType<70>SyncWrapperTyperr4rrr<><00>dictr<74>r<>r<>rGrr<00><module>r<>s_<00><01><04>#<23><12>#<23>%<25><19>'<27>2<>0<>+<2B>4<>,<2C>(<28>%<25>(<28><04>?<3F>?<3F>"<22><1A><11><19><19><<3C>q<EFBFBD>z<EFBFBD>z<EFBFBD>#<23>q<EFBFBD>u<EFBFBD>u<EFBFBD>*<2A>/E<>F<>J<EFBFBD><11><01> <09> <09>#<23><0E>A<EFBFBD><14><02> <0C> <0C>S<EFBFBD><19>A<EFBFBD><18>z<EFBFBD>z<EFBFBD>1<EFBFBD>:<3A>:<3A>a<EFBFBD><11>d<EFBFBD>#3<>"4<>a<EFBFBD>j<EFBFBD>j<EFBFBD><11>A<EFBFBD>K<EFBFBD>K<EFBFBD>PQ<50>N<EFBFBD>AR<41>6S<36>"S<>T<><14><17>j<EFBFBD>j<EFBFBD>!<21>*<2A>*<2A>Q<EFBFBD><01> <0B> <0B>A<EFBFBD><0E>-><3E>"?<3F>!@<40>!<21>*<2A>*<2A>Q<EFBFBD>PQ<50>T<EFBFBD>BR<42>!R<>S<>O<EFBFBD> <0C>U<EFBFBD>m<EFBFBD><03>'<27><03> <0B>
<EFBFBD><06>o"<22>o"<22>d <1C><04><02><12>( .<2E>&<26> .<2E> <1A><04> <1A> <1A>'<27><1A>0
<13><1B> <1B> <1B>r