MCPcopy
hub / github.com/scrapy/scrapy / maxpriority

Method maxpriority

scrapy/settings/__init__.py:404–413  ·  view source on GitHub ↗

Return the numerical value of the highest priority present throughout all settings, or the numerical value for ``default`` from :attr:`~scrapy.settings.SETTINGS_PRIORITIES` if there are no settings stored.

(self)

Source from the content-addressed store, hash-verified

402 return self.attributes[name].priority
403
404 def maxpriority(self) -> int:
405 """
406 Return the numerical value of the highest priority present throughout
407 all settings, or the numerical value for ``default`` from
408 :attr:`~scrapy.settings.SETTINGS_PRIORITIES` if there are no settings
409 stored.
410 """
411 if len(self) > 0:
412 return max(cast("int", self.getpriority(name)) for name in self)
413 return get_settings_priority("default")
414
415 def replace_in_component_priority_dict(
416 self,

Callers 2

__init__Method · 0.80
test_maxpriorityMethod · 0.80

Calls 2

getpriorityMethod · 0.95
get_settings_priorityFunction · 0.85

Tested by 1

test_maxpriorityMethod · 0.64