This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import warnings | |
import inspect | |
from pluggy import HookimplMarker, HookspecMarker, PluginManager, _HookCaller, normalize_hookimpl_opts, HookImpl | |
class MetadataHookspecMarker(HookspecMarker): | |
""" | |
Allows storing arbitrary metadata on the hookspec options | |
instead of what Pluggy sets by default. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random as _rng | |
class ShuffleQueue: | |
def __init__(self, items, rng=None): | |
self._idx = 0 | |
self._items = items | |
self._rng = rng or _rng |
OlderNewer