8000 fix: fmt · denosaurs/deno_python@4d0779f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d0779f

Browse files
committed
fix: fmt
1 parent 88ca471 commit 4d0779f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

ext/pip.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ export class Pip {
150150
entrypoint = entrypoints[entrypoints.indexOf(name)];
151151
} else {
152152
console.warn(
153-
`${yellow(
154-
"Warning",
155-
)
156-
} could not determine a single entrypoint for module ${module}, please specify one of: ${entrypoints.join(
157-
", ",
158-
)
153+
`${
154+
yellow(
155+
"Warning",
156+
)
157+
} could not determine a single entrypoint for module ${module}, please specify one of: ${
158+
entrypoints.join(
159+
", ",
160+
)
159161
}. Importing ${entrypoint}`,
160162
);
161163
}

src/python.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export class PyObject {
198198
* This is used with `PyCFunction_NewEx` in order to extend its liftime and not allow v8 to release it before its actually used
199199
*/
200200
#pyMethodDef?: Uint8Array;
201-
constructor(public handle: Deno.PointerValue) { }
201+
constructor(public handle: Deno.PointerValue) {}
202202

203203
/**
204204
* Check if the object is NULL (pointer) or None type in Python.
@@ -408,7 +408,11 @@ export class PyObject {
408408
*/
409409
equals(rhs: PythonConvertible): boolean {
410410
const rhsObject = PyObject.from(rhs);
411-
const comparison = py.PyObject_RichCompareBool(this.handle, rhsObject.handle, 3);
411+
const comparison = py.PyObject_RichCompareBool(
412+
this.handle,
413+
rhsObject.handle,
414+
3,
415+
);
412416
if (comparison === -1) {
413417
maybeThrowError();
414418
}
@@ -519,7 +523,7 @@ export class PyObject {
519523
const dict = py.PyDict_New();
520524
for (
521525
const [key, value]
522-
of (v instanceof Map ? v.entries() : Object.entries(v))
526+
of (v instanceof Map ? v.entries() : Object.entries(v))
523527
) {
524528
const keyObj = PyObject.from(key);
525529
const valueObj = PyObject.from(value);

0 commit comments

Comments
 (0)
0