Skip to content

Commit 9c60cb1

Browse files
committed
uptime funk
1 parent e3d982f commit 9c60cb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bindings/python/stub.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ def do_ruff(code, is_pyi: bool):
152152
def write(module, directory, origin, check=False):
153153
submodules = [(name, member) for name, member in inspect.getmembers(module) if inspect.ismodule(member)]
154154

155+
filename = os.path.join(directory, "__init__.pyi")
155156
pyi_content = pyi_file(module)
156157
pyi_content = do_ruff(pyi_content, is_pyi=True)
157158
os.makedirs(directory, exist_ok=True)
158-
159-
filename = os.path.join(directory, "__init__.pyi")
160159
if check:
161160
with open(filename, "r") as f:
162161
data = f.read()

0 commit comments

Comments
 (0)