Skip to content

Commit f3b07b2

Browse files
generatedunixname89002005307016facebook-github-bot
authored andcommitted
upgrade pyre version in fbcode/watchman - batch 1
Differential Revision: D52083795 fbshipit-source-id: 13682f2a2126e64fbb2b20e8b1fc9419b01cc097
1 parent 41aa2ee commit f3b07b2

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

watchman/python/pywatchman/load.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ def load(fp, mutable: bool = True, value_encoding=None, value_errors=None):
6060
"""
6161
buf = ctypes.create_string_buffer(8192)
6262
SNIFF_BUFFER_SIZE = len(EMPTY_HEADER)
63-
# pyre-fixme[16]: `int` has no attribute `from_buffer`.
64-
# pyre-fixme[58]: `*` is not supported for operand types `Type[ctypes.c_char]`
65-
# and `int`.
6663
header = (ctypes.c_char * SNIFF_BUFFER_SIZE).from_buffer(buf)
6764
read_len = _read_bytes(fp, header)
6865
if read_len < len(header):
@@ -73,17 +70,13 @@ def load(fp, mutable: bool = True, value_encoding=None, value_errors=None):
7370
if total_len > len(buf):
7471
ctypes.resize(buf, total_len)
7572

76-
# pyre-fixme[58]: `*` is not supported for operand types `Type[ctypes.c_char]`
77-
# and `Any`.
7873
body = (ctypes.c_char * (total_len - len(header))).from_buffer(buf, len(header))
7974
read_len = _read_bytes(fp, body)
8075
if read_len < len(body):
8176
raise RuntimeError("bser data ended early")
8277

8378
# pyre-fixme[16]: Module `pywatchman` has no attribute `bser`.
8479
return bser.loads(
85-
# pyre-fixme[58]: `*` is not supported for operand types
86-
# `Type[ctypes.c_char]` and `Any`.
8780
(ctypes.c_char * total_len).from_buffer(buf, 0),
8881
mutable,
8982
value_encoding,

watchman/python/pywatchman/windows.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ class WSAData64(ctypes.Structure):
195195
("iMaxSockets", ctypes.c_ushort),
196196
("iMaxUdpDg", ctypes.c_ushort),
197197
("lpVendorInfo", ctypes.c_char_p),
198-
# pyre-ignore
199198
("szDescription", ctypes.c_ushort * WSADESCRIPTION_LEN),
200-
# pyre-ignore
201199
("szSystemStatus", ctypes.c_ushort * WSASYS_STATUS_LEN),
202200
]
203201

@@ -208,7 +206,6 @@ class WSAData64(ctypes.Structure):
208206

209207

210208
class SOCKADDR_UN(ctypes.Structure):
211-
# pyre-ignore
212209
_fields_ = [("sun_family", ctypes.c_ushort), ("sun_path", ctypes.c_char * 108)]
213210

214211

0 commit comments

Comments
 (0)