Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Lint: Use Ruff to format Tools/jit #133123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
Loading
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore pylint comments
  • Loading branch information
AA-Turner committed May 2, 2025
commit ef24b969ad6e155cb21dd7621d6b27dc0596a7f3
2 changes: 1 addition & 1 deletion 2 Tools/jit/_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _async_cache(f: _C[_P, _R]) -> _C[_P, _R]:
lock = asyncio.Lock()

@functools.wraps(f)
async def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
async def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R: # pylint: disable = no-member
async with lock:
if args not in cache:
cache[args] = await f(*args, **kwargs)
Expand Down
6 changes: 3 additions & 3 deletions 6 Tools/jit/_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def build(
jit_stencils_new.unlink(missing_ok=True)


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


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


class _MachO(_Target[_schema.MachOSection, _schema.MachORelocation]):
class _MachO(_Target[_schema.MachOSection, _schema.MachORelocation]): # pylint: disable = too-few-public-methods
def _handle_section(
self, section: _schema.MachOSection, group: _stencils.StencilGroup
) -> None:
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.