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 2a256be commit 42ea94a
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 42ea94a

Please sign in to comment.