MCPcopy
hub / github.com/scrapy/scrapy / _get_key

Method _get_key

scrapy/settings/__init__.py:664–669  ·  view source on GitHub ↗
(self, key_value: Any)

Source from the content-addressed store, hash-verified

662 }
663
664 def _get_key(self, key_value: Any) -> _SettingsKey:
665 return (
666 key_value
667 if isinstance(key_value, (bool, float, int, str, type(None)))
668 else str(key_value)
669 )
670
671 def copy_to_dict(self) -> dict[_SettingsKey, Any]:
672 """

Callers 1

_to_dictMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected