InvenTree/InvenTree
Matthias Mair 3f93151cca
refactor: replace multiple `==` checks with `in` (#5737)
To check if a variable is equal to one of many values, combine the values into a tuple and check if the variable is contained `in` it instead of checking for equality against each of the values.
This is faster, less verbose, and more readable.

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2023-10-18 07:30:16 +11:00
..
InvenTree refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
build refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
common refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
company refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
generic refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
label refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
locale New Crowdin updates (#5641) 2023-10-16 12:06:36 +11:00
order refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
part refactor: replace multiple `==` checks with `in` (#5737) 2023-10-18 07:30:16 +11:00
plugin refactor: replace multiple `==` checks with `in` (#5737) 2023-10-18 07:30:16 +11:00
plugins Update documentation URLs (#4325) 2023-02-10 10:39:57 +11:00
report refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
script Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00
stock refactor: replace multiple `==` checks with `in` (#5737) 2023-10-18 07:30:16 +11:00
templates Version bump (#5740) 2023-10-18 07:27:28 +11:00
users refactor: remove blank lines after docstring (#5736) 2023-10-18 07:28:57 +11:00
web [P UI] Make base url configurable (#5577) 2023-09-21 09:39:05 +10:00
config_template.yaml add /static/ relative comment and update splash image path in config_template.yaml (#5433) 2023-10-17 11:25:05 +11:00
gunicorn.conf.py Skip ready functions if not in main thread or plugins are not loaded yet (#5005) 2023-07-26 08:33:13 +10:00
manage.py Docstring checks in QC checks (#3089) 2022-06-02 01:37:39 +10:00