summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-14 09:58:31 -0700
committerValentin Gagarin <valentin.gagarin@tweag.io>2024-03-19 22:31:19 +0100
commit997e54a4fb050e62a36865f6c3daea7125a89bf7 (patch)
tree6b7e0355da939166f98ce6db522b9200516e474a /pkgs/development/python-modules/rangehttpserver
parent869e55660606c401d4dec02f9ab1adda5b450521 (diff)
Avoid top-level `with ...;` in pkgs/build-support/nix-gitignore/default.nix
We also renamed `filter` (as a name of a parameter) to `predicate` following the naming suggestion in code review. It's better! Since it's not part of an attrset, the name can change with no impact to semantics, since it can't be observed with `builtins.functionArgs`. ``` $ nix-repl Nix 2.21.0 Type :? for help. nix-repl> f = x: y: z: (x + y + z) nix-repl> builtins.functionArgs f { } nix-repl> :doc builtins.functionArgs Synopsis: builtins.functionArgs f Return a set containing the names of the formal arguments expected by the function f. The value of each attribute is a Boolean denoting whether the corresponding argument has a default value. For instance, functionArgs ({ x, y ? 123}: ...) = { x = false; y = true; }. "Formal argument" here refers to the attributes pattern-matched by the function. Plain lambdas are not included, e.g. functionArgs (x: ...) = { }. ```
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions