Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 9, 2024
1 parent ad8f1d6 commit e2fd45e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def __init__(
fscache: FileSystemCache,
stdout: TextIO,
stderr: TextIO,
error_formatter: Optional["ErrorFormatter"] = None,
error_formatter: Optional[ErrorFormatter] = None,
) -> None:
self.stats: dict[str, Any] = {} # Values are ints or floats
self.stdout = stdout
Expand Down
1 change: 1 addition & 0 deletions mypy/error_formatter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Defines the different custom formats in which mypy can output."""

import json
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING
Expand Down
2 changes: 1 addition & 1 deletion test-data/unit/outputjson.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Test cases for `--output=json`.
-- These cannot be run by the usual unit test runner because of the backslashes
-- in the output, which get normalized to forward slashes by the test suite on
-- Windows.
-- Windows.

[case testOutputJsonNoIssues]
# flags: --output=json
Expand Down

0 comments on commit e2fd45e

Please sign in to comment.