Attached patch will reduce cognitive complexity for functions as below:
web/.../servers/pgagent/schedules/__init__.py - 17 to 15
web/.../servers/pgagent/steps/__init__.py - 21 to 15; 29 to 15 web/pgadmin/setup/user_info.py - 22 to 15 web/pgadmin/utils/preferences.py - 29 to 15; 44 to 15