Did I find the right examples for you? yes no

All Samples(15)  |  Call(11)  |  Derive(0)  |  Import(4)

src/c/l/climate-HEAD/climate/api/v2/controllers/lease.py   climate(Download)
    "The ID of the trust created for delegating the rights of the user"
 
    reservations = wtypes.ArrayType(wtypes.DictType(wtypes.text, wtypes.text))
    "The list of reservations belonging to the lease"
 
    events = wtypes.ArrayType(wtypes.DictType(wtypes.text, wtypes.text))

src/c/l/climate-HEAD/climate/api/v2/controllers/host.py   climate(Download)
    "The CPU info JSON data given by the hypervisor"
 
    extra_capas = wtypes.DictType(wtypes.text, types.TextOrInteger())
    "Extra capabilities for the host"
 

src/w/s/WSME-0.6/wsme/rest/args.py   WSME(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/w/s/wsme-HEAD/wsme/rest/args.py   wsme(Download)
 
from wsme.types import iscomplex, list_attributes, Unset
from wsme.types import UserType, ArrayType, DictType, File
from wsme.utils import parse_isodate, parse_isotime, parse_isodatetime
import wsme.runtime

src/w/s/wsme-HEAD/wsme/tests/test_protocols_commons.py   wsme(Download)
from wsme.exc import InvalidInput
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
    def test_from_params_dict(self):
        value = from_params(
            DictType(int, str),
            {'a[2]': 'a2', 'a[3]': 'a3'},
            'a',
    def test_from_params_dict_unset(self):
        assert from_params(DictType(int, str), {}, 'a', set()) is Unset
 
    def test_args_from_args_usertype(self):
 

src/w/s/WSME-0.6/wsme/tests/test_protocols_commons.py   WSME(Download)
from wsme.rest.args import from_param, from_params
 
from wsme.types import UserType, Unset, ArrayType, DictType
 
 
    def test_from_params_dict(self):
        value = from_params(
            DictType(int, str),
            {'a[2]': 'a2', 'a[3]': 'a3'},
            'a',
    def test_from_params_dict_unset(self):
        assert from_params(DictType(int, str), {}, 'a', set()) is Unset
 

src/w/s/WSME-0.6/tests/test_sphinxext.py   WSME(Download)
    def test_dict_type(self):
        d = wsme.types.DictType(str, str)
        self.assertEqual(sphinxext.datatypename(d), 'dict(str: str)')
        d = wsme.types.DictType(str, ASampleType)
        self.assertEqual(sphinxext.datatypename(d), 'dict(str: ASampleType)')

src/w/s/wsme-HEAD/tests/test_sphinxext.py   wsme(Download)
    def test_dict_type(self):
        d = wsme.types.DictType(str, str)
        self.assertEqual(sphinxext.datatypename(d), 'dict(str: str)')
        d = wsme.types.DictType(str, ASampleType)
        self.assertEqual(sphinxext.datatypename(d), 'dict(str: ASampleType)')