MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / override_attributes

Method override_attributes

github/PaginatedList.py:473–479  ·  view source on GitHub ↗
(cls, overrides: dict[str, Any])

Source from the content-addressed store, hash-verified

471
472 @classmethod
473 def override_attributes(cls, overrides: dict[str, Any]) -> Callable[[dict[str, Any]], dict[str, Any]]:
474 def attributes_transformer(element: dict[str, Any]) -> dict[str, Any]:
475 # Recursively merge overrides with attributes, overriding attributes with overrides
476 element = cls.merge_dicts(element, overrides)
477 return element
478
479 return attributes_transformer
480
481 @classmethod
482 def merge_dicts(cls, d1: dict[str, Any], d2: dict[str, Any]) -> dict[str, Any]:

Callers 6

get_secretsMethod · 0.80
get_variablesMethod · 0.80
get_environmentsMethod · 0.80
get_secretsMethod · 0.80
get_variablesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected