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)
| 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, |