Skip to content

Commit c0cb637

Browse files
committed
[REVERTME] intentionally fail lint workflows to showcase
1 parent 80a4d2a commit c0cb637

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ jobs:
9292
9393
echo '::group::Lint Python types'
9494
mypy --install-types --non-interactive --config-file mypy.ini
95-
echo '::endgroup::'
95+
echo '::endgroup::'

torchvision/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from modulefinder import Module
44

55
import torch
6-
from torchvision import datasets, io, models, ops, transforms, utils
6+
from torchvision import utils, datasets, io, models, ops, transforms
77

88
from .extension import _HAS_OPS
99

torchvision/csrc/vision.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ PyMODINIT_FUNC PyInit__C(void) {
2828

2929
namespace vision {
3030
int64_t cuda_version() {
31+
32+
33+
34+
35+
3136
#ifdef WITH_CUDA
3237
return CUDA_VERSION;
3338
#else

torchvision/csrc/vision.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
#include <cstdint>
44
#include "macros.h"
55

6-
namespace vision {
7-
VISION_API int64_t cuda_version();
8-
6+
namespace vision {VISION_API int64_t cuda_version();
97
namespace detail {
108
extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
119
#ifdef HINT_MSVC_LINKER_INCLUDE_SYMBOL

torchvision/datasets/caltech.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __getitem__(self, index: int) -> Tuple[Any, Any]:
116116

117117
return img, target
118118

119-
def _check_integrity(self) -> bool:
119+
def _check_integrity(self) -> str:
120120
# can be more robust and check hash of files
121121
return os.path.exists(os.path.join(self.root, "101_ObjectCategories"))
122122

0 commit comments

Comments
 (0)