MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / parse_arguments

Method parse_arguments

dev/scripts/examples/example_generator.py:757–766  ·  view source on GitHub ↗
(self, arguments)

Source from the content-addressed store, hash-verified

755 indentation = ' ' * 0
756
757 def parse_arguments(self, arguments):
758 out = []
759 for arg in arguments:
760 if isinstance(arg, str) and arg[0] == "'" and arg[-1] == "'":
761 out.append('\'' + arg[1:-1] + '\'')
762 elif isinstance(arg, dict):
763 out.append(self.dict2string(arg))
764 else:
765 out.append(arg)
766 return out
767
768 def dict2string(self, d):
769 if d['type'] == 'comment':

Callers 1

dict2stringMethod · 0.95

Calls 2

dict2stringMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected