How to use the pyglossary.option.Option.__init__ function in pyglossary

To help you get started, we’ve selected a few pyglossary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(
			self,
			"bool",
			customValue=False,
			values=[False, True],
			**kwargs,
		)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, customValue=True, values=None, **kwargs):
		if values is None:
			values = [
				"\r\n",
				"\n",
				"\r",
			]
		Option.__init__(
			self,
			"str",
			customValue=customValue,
			values=values,
			**kwargs
		)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(self, "str", customValue=True, **kwargs)
		# FIXME: use a specific type?
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(
			self,
			"list",
			customValue=True,
			**kwargs,
		)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(self, "str", **kwargs)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(
			self,
			"dict",
			customValue=True,
			**kwargs,
		)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(self, "float", **kwargs)
github ilius / pyglossary / pyglossary / option.py View on Github external
"mac_greek",
				"mac_iceland",
				"mac_latin2",
				"mac_roman",
				"mac_turkish",
				"cyrillic",
				"arabic",
				"greek",
				"hebrew",
				"latin2",
				"latin3",
				"latin4",
				"latin5",
				"latin6",
			]
		Option.__init__(
			self,
			"str",
			customValue=customValue,
			values=values,
			**kwargs
		)
github ilius / pyglossary / pyglossary / option.py View on Github external
def __init__(self, **kwargs):
		Option.__init__(self, "int", **kwargs)