Skip to content

Commit

Permalink
type annotate twisted.trial.test.test_script
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Sep 16, 2023
1 parent 0b1d7cf commit 0bb9f2b
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 86 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ module = [
'twisted.trial.test.test_pyunitcompat',
'twisted.trial.test.test_reporter',
'twisted.trial.test.test_runner',
'twisted.trial.test.test_script',
'twisted.trial.test.test_suppression',
'twisted.trial.test.test_testcase',
'twisted.trial.test.test_tests',
Expand Down
5 changes: 4 additions & 1 deletion src/twisted/python/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os
import sys
import warnings
from typing import AnyStr

try:
import grp as _grp
Expand Down Expand Up @@ -287,7 +288,9 @@ def addPluginDir():
sys.path.extend(getPluginDirs())


def sibpath(path, sibling):
def sibpath(
path: os.PathLike[AnyStr] | AnyStr, sibling: os.PathLike[AnyStr] | AnyStr
) -> AnyStr:
"""
Return the path to a sibling of a file in the filesystem.
Expand Down

0 comments on commit 0bb9f2b

Please sign in to comment.