Skip to content

Commit

Permalink
fixup: print_exc's self missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
litlighilit committed Aug 7, 2024
1 parent 423205e commit 7204aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylib/Lib/timeit.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template autorange*(self: Timer, callable=None): (int, float) =
autorange(self, nil)

template sys_stderr: untyped = sys.stderr
proc print_exc*(self, file: NoneType|File|typeof(sys.stderr) = None) =
proc print_exc*(self: Timer, file: NoneType|File|typeof(sys.stderr) = None) =
bind print_exc, sys_stderr
print_exc(self,
when file is NoneType: sys_stderr
Expand Down

0 comments on commit 7204aed

Please sign in to comment.