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
| @status DRAFT | |
| @version | |
| MAJOR 1 | |
| MINOR 0 | |
| REV 5 | |
| all specifiers produce an escape sequence. | |
| DEFINITIONS | |
| • Tag: text surrounded by brackets that signal the start of a formatted |
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 argparse | |
| import asyncio | |
| import os | |
| import sys | |
| import typing | |
| class APrintNamespace(typing.Protocol): | |
| message: str | |
| tasks: int |
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 | |
| # pyright: reportUnusedCallResult = false, reportUnusedImport = false | |
| # ruff: noqa: DTZ005, T201 | |
| """ | |
| .pythonrc is a file which is executed when the Python interactive shell is | |
| started if $PYTHONSTARTUP is in your environment and points to this file. | |
| It's just regular Python code, so do what you will. Your ~/.inputrc file | |
| can greatly complement this file. |
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
| from __future__ import annotations | |
| import asyncio | |
| import collections.abc | |
| import io | |
| import os | |
| import random | |
| import sys | |
| import time | |
| import typing |
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 dataclasses | |
| import io | |
| import os | |
| import re | |
| import shutil | |
| import textwrap | |
| import typing | |
| Color8Type: typing.TypeAlias = typing.Literal[0, 1, 2, 3, 4, 5, 6, 7, 9] |
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 abc | |
| import collections.abc | |
| import os | |
| import shutil | |
| import sys | |
| import time | |
| import typing | |
| class RGBColor(typing.NamedTuple): |
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
| type TokenType = | |
| | COMMENT | |
| | IDENTIFIER | |
| | INTEGER | |
| | REAL | |
| | CHARACTER | |
| | STRING | |
| | LEFT_BRACE | |
| | LEFT_BRACKET | |
| | LEFT_PAREN |
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
| # pyright: reportUnusedExpression = false | |
| import dataclasses | |
| import os | |
| import sys | |
| import typing | |
| @dataclasses.dataclass(slots=True) | |
| class CPPFile: |
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
| from __future__ import annotations | |
| import os | |
| import typing | |
| _ALREADY_EXISTS = "cannot instantiate singleton class {!r}: the instance already exists" | |
| class SingletonMeta(type): |
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
| from __future__ import annotations | |
| import abc | |
| import collections.abc | |
| import dataclasses | |
| import functools | |
| import typing | |
| T = typing.TypeVar("T") | |
| U = typing.TypeVar("U") |