Skip to content

Commit

Permalink
Add type to __main__._ctx_write
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Dec 14, 2024
1 parent 4fae8b5 commit 61bf439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/coglet/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import contextvars
import logging
import sys
from typing import Dict, Optional
from typing import Callable, Dict, Optional

from coglet import file_runner

Expand Down Expand Up @@ -37,7 +37,7 @@ def main() -> int:
_stdout_write = sys.stdout.write
_stderr_write = sys.stderr.write

def _ctx_write(write_fn):
def _ctx_write(write_fn) -> Callable[[str], int]:
buf: Dict[str, str] = {}

def _write(s: str) -> int:
Expand Down

0 comments on commit 61bf439

Please sign in to comment.