Skip to content

Commit

Permalink
style: Fixes unnecessary-collection-call (C408) for ctypesgen
Browse files Browse the repository at this point in the history
Only applies fixes to non-empty collections by  `ruff check --select "C408" --unsafe-fixes --output-format=concise --fix` in order to limit the review scope.
  • Loading branch information
echoix committed Jun 30, 2024
1 parent 130970f commit e1b862f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Lookup:

def __init__(self, path):
super(LibraryLoader.Lookup, self).__init__()
self.access = dict(cdecl=ctypes.CDLL(path, self.mode))
self.access = {"cdecl": ctypes.CDLL(path, self.mode)}

def get(self, name, calling_convention="cdecl"):
"""Return the given name according to the selected calling convention"""
Expand Down

0 comments on commit e1b862f

Please sign in to comment.