MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / extend

Method extend

web/pgadmin/utils/csv_lib.py:581–599  ·  view source on GitHub ↗
(cls, dialect, fmtparams=None)

Source from the content-addressed store, hash-verified

579
580 @classmethod
581 def extend(cls, dialect, fmtparams=None):
582 if isinstance(dialect, str):
583 dialect = get_dialect(dialect)
584
585 if fmtparams is None:
586 return dialect
587
588 defaults = cls.defaults()
589
590 if any(param not in defaults for param in fmtparams):
591 raise TypeError('Invalid fmtparam')
592
593 specified = dict(
594 (attr, getattr(dialect, attr, None))
595 for attr in cls.defaults()
596 )
597
598 specified.update(fmtparams)
599 return type(str('ExtendedDialect'), (cls,), specified)
600
601 @classmethod
602 def combine(cls, dialect, fmtparams):

Callers 15

get_keywords_pg_codeFunction · 0.80
menu_itemsMethod · 0.80
limit_host_addrFunction · 0.80
get_children_nodesMethod · 0.80
get_children_nodesMethod · 0.80
csssnippetsMethod · 0.80
utilsFunction · 0.80
browser_cssFunction · 0.80
get_nodesFunction · 0.80
csssnippetsMethod · 0.80
csssnippetsMethod · 0.80
server_group.jsFile · 0.80

Calls 3

get_dialectFunction · 0.85
defaultsMethod · 0.45
updateMethod · 0.45

Tested by 2

get_test_modulesFunction · 0.64
openMethod · 0.64