MCPcopy
hub / github.com/django/django / from_parameter

Method from_parameter

django/contrib/postgres/search.py:94–97  ·  view source on GitHub ↗
(cls, config)

Source from the content-addressed store, hash-verified

92
93 @classmethod
94 def from_parameter(cls, config):
95 if config is None or isinstance(config, cls):
96 return config
97 return cls(config)
98
99 def get_source_expressions(self):
100 return [self.config]

Callers 4

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
test_from_parameterMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_from_parameterMethod · 0.64