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 | |
| # SPDX-FileCopyrightText: 2024 Ilya Egorov <[email protected]> | |
| # SPDX-License-Identifier: ISC | |
| # mypy: disable-error-code="attr-defined, import-untyped, no-untyped-def" | |
| # pyright: reportAttributeAccessIssue=false, reportOptionalMemberAccess=false | |
| from __future__ import annotations |
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 | |
| # SPDX-FileCopyrightText: 2025 Ilya Egorov <[email protected]> | |
| # SPDX-License-Identifier: ISC | |
| from __future__ import annotations | |
| from collections import OrderedDict | |
| from typing import TYPE_CHECKING |
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 | |
| # SPDX-FileCopyrightText: 2022 Ilya Egorov <[email protected]> | |
| # SPDX-License-Identifier: 0BSD | |
| __all__ = ( | |
| "RPSLock", | |
| ) | |
| from functools import wraps |
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 | |
| # SPDX-FileCopyrightText: 2024 Ilya Egorov <[email protected]> | |
| # SPDX-License-Identifier: 0BSD | |
| import sys | |
| import time | |
| import threading | |
| from concurrent.futures import ThreadPoolExecutor, wait |
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 | |
| # SPDX-FileCopyrightText: 2024 Ilya Egorov <[email protected]> | |
| # SPDX-License-Identifier: 0BSD | |
| __all__ = ( | |
| 'init', | |
| ) | |
| from sys import modules |