Home
last modified time | relevance | path

Searched refs:default_if_none (Results 1 – 25 of 73) sorted by relevance

123

/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/attrs/tests/
H A Dtest_converters.py10 from attr.converters import default_if_none, optional
50 default_if_none()
57 default_if_none(True, lambda: 42)
64 default_if_none(Factory(list, takes_self=True))
71 c = default_if_none("nope")
75 c = default_if_none(factory=list)
83 c = default_if_none(42)
91 c = default_if_none(factory=list)
95 c = default_if_none(default=Factory(list))
/dports/devel/py-attrs/attrs-21.2.0/tests/
H A Dtest_converters.py14 from attr.converters import default_if_none, optional, pipe
54 default_if_none()
61 default_if_none(True, lambda: 42)
68 default_if_none(Factory(list, takes_self=True))
75 c = default_if_none("nope")
79 c = default_if_none(factory=list)
87 c = default_if_none(42)
95 c = default_if_none(factory=list)
99 c = default_if_none(default=Factory(list))
/dports/databases/mongodb42-tools/mongo-tools-r4.2.17/test/qa-tests/buildscripts/resmokelib/core/
H A Dprograms.py25 executable = utils.default_if_none(executable, config.DEFAULT_MONGOD_EXECUTABLE)
81 process_kwargs = utils.default_if_none(process_kwargs, {})
91 executable = utils.default_if_none(executable, config.DEFAULT_MONGOS_EXECUTABLE)
108 process_kwargs = utils.default_if_none(process_kwargs, {})
118 executable = utils.default_if_none(executable, config.DEFAULT_MONGO_EXECUTABLE)
188 process_kwargs = utils.default_if_none(process_kwargs, {})
219 executable = utils.default_if_none(executable, config.DEFAULT_DBTEST_EXECUTABLE)
242 process_kwargs = utils.default_if_none(process_kwargs, {})
/dports/databases/mongodb42-tools/mongo-tools-r4.2.17/test/qa-tests/buildscripts/resmokelib/
H A Dselector.py26 include_files = utils.default_if_none(include_files, [])
27 exclude_files = utils.default_if_none(exclude_files, [])
68 binary = utils.default_if_none(config.DBTEST_EXECUTABLE, binary)
70 binary = utils.default_if_none(binary, config.DEFAULT_DBTEST_EXECUTABLE)
72 include_suites = utils.default_if_none(include_suites, [])
116 include_files = utils.default_if_none(include_files, [])
117 exclude_files = utils.default_if_none(exclude_files, [])
140 tags[tag_category] = set(utils.default_if_none(tags[tag_category], []))
/dports/databases/mongodb36/mongodb-src-r3.6.23/buildscripts/resmokelib/core/
H A Dprograms.py46 executable = utils.default_if_none(executable, config.DEFAULT_MONGOD_EXECUTABLE)
140 process_kwargs = utils.default_if_none(process_kwargs, {})
150 executable = utils.default_if_none(executable, config.DEFAULT_MONGOS_EXECUTABLE)
167 process_kwargs = utils.default_if_none(process_kwargs, {})
177 connection_string = utils.default_if_none(config.SHELL_CONN_STRING, connection_string)
179 executable = utils.default_if_none(executable, config.DEFAULT_MONGO_EXECUTABLE)
287 process_kwargs = utils.default_if_none(process_kwargs, {})
318 executable = utils.default_if_none(executable, config.DEFAULT_DBTEST_EXECUTABLE)
343 process_kwargs = utils.default_if_none(process_kwargs, {})
/dports/databases/mongodb42-tools/mongo-tools-r4.2.17/test/qa-tests/buildscripts/resmokelib/testing/
H A Dtestcases.py137 self.program_options = utils.default_if_none(program_options, {}).copy()
171 self.program_options = utils.default_if_none(program_options, {}).copy()
212 self.dbtest_executable = utils.default_if_none(config.DBTEST_EXECUTABLE, dbtest_executable)
215 self.dbtest_options = utils.default_if_none(dbtest_options, {}).copy()
287 self.shell_executable = utils.default_if_none(config.MONGO_EXECUTABLE, shell_executable)
290 self.shell_options = utils.default_if_none(shell_options, {}).copy()
333 data_dir_prefix = utils.default_if_none(config.DBPATH_PREFIX,
335 data_dir_prefix = utils.default_if_none(data_dir_prefix, config.DEFAULT_DBPATH_PREFIX)
369 self.mongos_executable = utils.default_if_none(config.MONGOS_EXECUTABLE,
/dports/databases/mongodb42-tools/mongo-tools-r4.2.17/test/qa-tests/buildscripts/resmokelib/testing/fixtures/
H A Dmasterslave.py40 self.mongod_options = utils.default_if_none(mongod_options, {})
41 self.master_options = utils.default_if_none(master_options, {})
42 self.slave_options = utils.default_if_none(slave_options, {})
46 dbpath_prefix = utils.default_if_none(config.DBPATH_PREFIX, dbpath_prefix)
47 dbpath_prefix = utils.default_if_none(dbpath_prefix, config.DEFAULT_DBPATH_PREFIX)
H A Dshardedcluster.py55 self.mongos_options = utils.default_if_none(mongos_options, {})
57 self.mongod_options = utils.default_if_none(mongod_options, {})
61 self.enable_sharding = utils.default_if_none(enable_sharding, [])
65 dbpath_prefix = utils.default_if_none(config.DBPATH_PREFIX, dbpath_prefix)
66 dbpath_prefix = utils.default_if_none(dbpath_prefix, config.DEFAULT_DBPATH_PREFIX)
263 self.mongos_executable = utils.default_if_none(config.MONGOS_EXECUTABLE, mongos_executable)
265 self.mongos_options = utils.default_if_none(mongos_options, {}).copy()
H A Dstandalone.py43 self.mongod_executable = utils.default_if_none(config.MONGOD_EXECUTABLE, mongod_executable)
45 self.mongod_options = utils.default_if_none(mongod_options, {}).copy()
52 dbpath_prefix = utils.default_if_none(config.DBPATH_PREFIX, dbpath_prefix)
53 dbpath_prefix = utils.default_if_none(dbpath_prefix, config.DEFAULT_DBPATH_PREFIX)
H A Dreplicaset.py38 self.mongod_options = utils.default_if_none(mongod_options, {})
42 self.replset_config_options = utils.default_if_none(replset_config_options, {})
51 dbpath_prefix = utils.default_if_none(config.DBPATH_PREFIX, dbpath_prefix)
52 dbpath_prefix = utils.default_if_none(dbpath_prefix, config.DEFAULT_DBPATH_PREFIX)
/dports/www/firefox/firefox-99.0/third_party/python/attrs/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/devel/pycharm-pro/pycharm-2020.2.3/plugins/python/helpers/typeshed/third_party/2and3/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/python/attrs/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/devel/py-attrs/attrs-21.2.0/src/attr/
H A Dconverters.pyi11 def default_if_none(default: _T) -> _ConverterType: ...
13 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType: ...
/dports/www/firefox-esr/firefox-91.8.0/third_party/python/attrs/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/devel/py-jedi/jedi-0.18.0/jedi/third_party/typeshed/third_party/2and3/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/devel/py-mypy/mypy-0.910/test-data/unit/lib-stub/attr/
H A Dconverters.pyi10 def default_if_none(default: _T) -> _ConverterType[_T]: ...
12 def default_if_none(*, factory: Callable[[], _T]) -> _ConverterType[_T]: ...
/dports/databases/mongodb36/mongodb-src-r3.6.23/buildscripts/resmokelib/testing/fixtures/
H A Dshardedcluster.py59 self.mongos_options = utils.default_if_none(mongos_options, {})
61 self.mongod_options = utils.default_if_none(mongod_options, {})
66 self.enable_sharding = utils.default_if_none(enable_sharding, [])
68 self.configsvr_options = utils.default_if_none(configsvr_options, {})
69 self.shard_options = utils.default_if_none(shard_options, {})
358 self.mongos_executable = utils.default_if_none(config.MONGOS_EXECUTABLE, mongos_executable)
360 self.mongos_options = utils.default_if_none(mongos_options, {}).copy()
H A Dmasterslave.py40 self.mongod_options = utils.default_if_none(mongod_options, {})
41 self.master_options = utils.default_if_none(master_options, {})
42 self.slave_options = utils.default_if_none(slave_options, {})
H A Dinterface.py60 dbpath_prefix = utils.default_if_none(config.DBPATH_PREFIX, dbpath_prefix)
61 dbpath_prefix = utils.default_if_none(dbpath_prefix, config.DEFAULT_DBPATH_PREFIX)
/dports/databases/mongodb36/mongodb-src-r3.6.23/buildscripts/resmokelib/testing/testcases/
H A Djson_schema_test.py31 self.shell_executable = utils.default_if_none(config.MONGO_EXECUTABLE, shell_executable)
34 self.shell_options = utils.default_if_none(shell_options, {}).copy()
H A Djstest.py38 self.shell_executable = utils.default_if_none(config.MONGO_EXECUTABLE, shell_executable)
41 self.shell_options = utils.default_if_none(shell_options, {}).copy()
118 data_dir_prefix = utils.default_if_none(config.DBPATH_PREFIX,
120 data_dir_prefix = utils.default_if_none(data_dir_prefix, config.DEFAULT_DBPATH_PREFIX)
H A Ddbtest.py35 self.dbtest_executable = utils.default_if_none(config.DBTEST_EXECUTABLE, dbtest_executable)
38 self.dbtest_options = utils.default_if_none(dbtest_options, {}).copy()
/dports/databases/mongodb36/mongodb-src-r3.6.23/buildscripts/resmokelib/
H A Dselector.py345 self.include_files = utils.default_if_none(include_files, [])
346 self.exclude_files = utils.default_if_none(exclude_files, [])
493 self.include_suites = utils.default_if_none(include_suites, [])
496 binary = utils.default_if_none(config.DBTEST_EXECUTABLE, binary)
498 binary = utils.default_if_none(binary, config.DEFAULT_DBTEST_EXECUTABLE)
/dports/databases/mongodb42-tools/mongo-tools-r4.2.17/test/qa-tests/buildscripts/resmokelib/logging/
H A Dhandlers.py161 data = utils.default_if_none(data, [])
164 headers = utils.default_if_none(headers, {})

123