You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: asyncutils/config.pyi
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ class sentinel_base:
39
39
@final
40
40
@type_check_only
41
41
class_sentinel(sentinel_base):
42
-
'''Sentinels for this module, internal or public.'''
42
+
'''Sentinels for this module, internal or public. Not exported.'''
43
43
def__reduce__(self) ->str: '''These sentinels are accessible in the top level of the asyncutils.config namespace.'''
44
44
defset_logger_level(level: int) ->None: '''Set the level of the module-global logger.'''
45
45
defget_past_logs() ->str: '''Returns all stored logs as a string. Logs are only stored if asyncutils was started with -l MEMORY, otherwise an empty string is returned.'''
'''Returns a password-protected queue, inheriting from asyncio.Queue, with maximum size maxsize. priority and lifo parameters determine if the queue is a priority queue and last-in-first-out.
57
-
If protect_get is True, get and get_nowait will require a password, specified by password_get or retrieved from a variable in the caller's scope with name get_from (default 'password').
58
-
If protect_put is True, put and put_nowait will require a password, specified by password_put or retrieved from a variable in the caller's scope with name put_from (default 'password').
59
-
If init_items is specified, the items in that (async) iterable will be put into the queue immediately. If there are too many items in the (async) iterable, parameters wait and raising determine the behaviour; log is a function used to emit warnings in that case.
60
-
auditf (default sys.audit) is an audit function that takes the event name ('asyncutils.queues.password_queue'), protect_get, protect_put, get_from, put_from and returns None; note that the passwords are not passed to the audit function.'''
56
+
'''Returns a password-protected queue, the type of which inherits from asyncio.Queue, with maximum size `maxsize`. `priority` and `lifo` parameters determine if the queue is a priority queue and last-in-first-out.
57
+
If `protect_get` is True, get and get_nowait will require a password, specified by password_get or retrieved from a variable in the caller's scope with name `get_from` (default `password`).
58
+
If `protect_put` is True, put and put_nowait will require a password, specified by password_put or retrieved from a variable in the caller's scope with name `put_from` (default `password`).
59
+
If `init_items` is specified, the items in that (async) iterable will be put into the queue immediately. If there are too many items in the (async) iterable, parameters wait and raising determine the behaviour; log is a function used to emit warnings in that case.
60
+
`auditf` (default sys.audit) is an audit function that takes the event name ('asyncutils.queues.password_queue'), `protect_get`, `protect_put`, `get_from`, `put_from` and returns None; note that the passwords are not passed to the audit function.'''
0 commit comments