Skip to content

Commit 3c6a50a

Browse files
authored
Use quote-style = "preserve". (#16)
The formatter is messing with my vibe.
1 parent b0778a9 commit 3c6a50a

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ extend-ignore = [
6868
line-length = 80
6969
indent-width = 4
7070
include = ["pyproject.toml", "typemap/**/*.py", "tests/**/*.py"]
71+
72+
[tool.ruff.format]
73+
quote-style = "preserve"

tests/test_type_dir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from . import format_helper
2222

23-
type OrGotcha[K] = K | Literal["gotcha!"]
23+
type OrGotcha[K] = K | Literal['gotcha!']
2424

2525
type StrForInt[X] = (str | OrGotcha[X]) if X is int else (X | OrGotcha[X])
2626

typemap/type_eval/_eval_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class EvalContext:
5555

5656
# `eval_types()` calls can be nested, context must be preserved
5757
_current_context: contextvars.ContextVar[EvalContext | None] = (
58-
contextvars.ContextVar("_current_context", default=None)
58+
contextvars.ContextVar('_current_context', default=None)
5959
)
6060

6161

0 commit comments

Comments
 (0)