Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(5) | Call(3) | Derive(0) | Import(2)
src/i/n/inxpect-0.4/inxpect/expect/factory.py inxpect(Download)
# -*- coding: utf8 -*- from .method import DefaultMethod from .list import ListMethod from .dict import DictMethod
expect = DictMethod(*self.args, **self.kwargs) elif len_args > 1: expect = ListMethod(*self.args, **self.kwargs) else: expect = DefaultMethod(*self.args, **self.kwargs)
def at(self, key): if isinstance(key, int): expect = ListMethod(*self.args, **self.kwargs) else: expect = DictMethod(*self.args, **self.kwargs)
def __getattr__(self, name): if name in dir(DefaultMethod): expect = DefaultMethod(*self.args, **self.kwargs) elif name in dir(ListMethod): expect = ListMethod(*self.args, **self.kwargs)
src/i/n/inxpect-0.4/inxpect/expect/__init__.py inxpect(Download)
] from .method import DefaultMethod as Expect, SameMethod as ExpectSame from .list import ListMethod as List, ListItemMethod as ListItem from .dict import DictMethod as Dict, DictItemMethod as DictItem from .chain import AndChain as And, OrChain as Or