Skip to content

Commit ef24b96

Browse files
committed
Restore pylint comments
1 parent e36f747 commit ef24b96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tools/jit/_llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _async_cache(f: _C[_P, _R]) -> _C[_P, _R]:
2121
lock = asyncio.Lock()
2222

2323
@functools.wraps(f)
24-
async def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
24+
async def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R: # pylint: disable = no-member
2525
async with lock:
2626
if args not in cache:
2727
cache[args] = await f(*args, **kwargs)

Tools/jit/_targets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def build(
231231
jit_stencils_new.unlink(missing_ok=True)
232232

233233

234-
class _COFF(_Target[_schema.COFFSection, _schema.COFFRelocation]):
234+
class _COFF(_Target[_schema.COFFSection, _schema.COFFRelocation]): # pylint: disable = too-few-public-methods
235235
def _handle_section(
236236
self, section: _schema.COFFSection, group: _stencils.StencilGroup
237237
) -> None:
@@ -317,7 +317,7 @@ def _handle_relocation(
317317
return _stencils.Hole(offset, kind, value, symbol, addend)
318318

319319

320-
class _ELF(_Target[_schema.ELFSection, _schema.ELFRelocation]):
320+
class _ELF(_Target[_schema.ELFSection, _schema.ELFRelocation]): # pylint: disable = too-few-public-methods
321321
def _handle_section(
322322
self, section: _schema.ELFSection, group: _stencils.StencilGroup
323323
) -> None:
@@ -405,7 +405,7 @@ def _handle_relocation(
405405
return _stencils.Hole(offset, kind, value, symbol, addend)
406406

407407

408-
class _MachO(_Target[_schema.MachOSection, _schema.MachORelocation]):
408+
class _MachO(_Target[_schema.MachOSection, _schema.MachORelocation]): # pylint: disable = too-few-public-methods
409409
def _handle_section(
410410
self, section: _schema.MachOSection, group: _stencils.StencilGroup
411411
) -> None:

0 commit comments

Comments
 (0)