Skip to content

Commit

Permalink
Fix PYI024
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 4, 2025
1 parent a8fd289 commit f683296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions jaraco/vcs/cmd.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import abc
import collections
import itertools
import operator
import os.path
import re
import subprocess
import types
import typing

import dateutil.parser
from tempora import utc

import jaraco.path

TaggedRevision = collections.namedtuple('TaggedRevision', 'tag revision')

class TaggedRevision(typing.NamedTuple):
tag: str
revision: str


class Command(metaclass=abc.ABCMeta):
Expand Down
7 changes: 5 additions & 2 deletions jaraco/vcs/reentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
the current Python process.
"""

import collections
import contextlib
import io
import sys
import typing

SavedIO = collections.namedtuple('SavedIO', 'stdout stderr')

class SavedIO(typing.NamedTuple):
stdout: io.StringIO
stderr: io.StringIO


class TextIO(io.StringIO):
Expand Down

0 comments on commit f683296

Please sign in to comment.