Skip to content

Commit f7afe99

Browse files
author
Pierre-Luc Tessier Gagné
committed
Disable unnecessary lambda pylint warning.
This line is more readable and consistent with the other lines with the use of lambda
1 parent 62ff42e commit f7afe99

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎can/util.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def load_config(path=None, config=None, context=None):
153153
config_sources = [
154154
given_config,
155155
can.rc,
156-
lambda _context: load_environment_config(_context),
156+
lambda _context: load_environment_config( # pylint: disable=unnecessary-lambda
157+
_context
158+
),
157159
lambda _context: load_environment_config(),
158160
lambda _context: load_file_config(path, _context),
159161
lambda _context: load_file_config(path),

0 commit comments

Comments
 (0)