Skip to content

Commit 2601fd1

Browse files
pyre: Finally, remove obosolete pyre error suppressions
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
1 parent c1ebd7b commit 2601fd1

File tree

6 files changed

+2
-8
lines changed

6 files changed

+2
-8
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
This module is run automatically by pytest to define and enable fixtures.
66
"""
77

8-
# pyre-ignore-all-errors[21]
98
import warnings
109

11-
import pytest # pyre does not find the module when run by tox -e py311-pyre
10+
import pytest
11+
1212

1313
@pytest.fixture(autouse=True)
1414
def set_warnings():

tests/test_cpiofile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# suppress false positive on pytest missing pytest.raises():
2-
# pyre-ignore-all-errors[16]
32
"""
43
Test various modes of creating and extracting CpioFile using different compression
54
types, opening the archive as stream and as file, using pyfakefs as filesystem without

tests/test_httpaccessor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def http_get_request_data(self, url, read_file, error_handler):
4343

4444
def assert_http_get_request_data(self, url, read_file, error_handler):
4545
# type:(str, str, ErrorHandler) -> HTTPAccessor
46-
# pyre-ignore[23]: silence false positive
4746
with self.http_get_request_data(url, read_file, error_handler) as (httpaccessor, ref):
4847
http_accessor_filehandle = httpaccessor.openAddress(read_file)
4948
if sys.version_info >= (3, 0):

xcp/accessor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"""accessor - provide common interface to access methods"""
2525

2626
import errno
27-
# pyre-ignore-all-errors[6,16]
2827
import ftplib
2928
import io
3029
import os

xcp/bootloader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
import xcp.cmd
3434

35-
# pyre-ignore-all-errors[21]
3635
try: # xenserver-release.rpm puts a branding.py into our xcp installation directory:
3736
from xcp import branding # type:ignore[attr-defined] # pytype: disable=import-error
3837
except ImportError: # For CI, use stubs/branding.py (./stubs is added to pythonpath)

xcp/cpiofile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
Derived from Lars Gustäbel's tarfile.py
3737
"""
3838
from __future__ import print_function
39-
# pyre is not as good as other static analysis tools in inferring the correct types:
40-
# pyre-ignore-all-errors[6,16]
4139

4240
__version__ = "0.1"
4341
__author__ = "Simon Rowe"

0 commit comments

Comments
 (0)