Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ClassDef bases Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Str With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Str With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryExcept body With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Lambda arguments args defaults vararg NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Raise TryExcept body With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam NameParam defaults NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad ClassDef bases Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam NameParam defaults NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases Call NameLoad NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str decorator_list decorator_list Expr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases Call NameLoad NameLoad NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Return AttributeLoad NameLoad attr decorator_list NameLoad NameLoad decorator_list With Call AttributeLoad NameLoad attr NameLoad body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad decorator_list With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args NameParam defaults Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A abc abstractmethod ABCMeta unittest TestCase six with_metaclass zipline.utils.final FinalMeta final zipline.utils.metautils compose_types FinalMetaTestCase N/A TestCase N/A setUpClass N/A N/A cls N/A N/A ClassWithFinal N/A N/A with_metaclass FinalMeta object N/A N/A a N/A final ClassWithFinal: a N/A b ClassWithFinal: b f N/A N/A self N/A N/A N/A ClassWithFinal: f N/A final g N/A N/A self N/A N/A N/A ClassWithFinal: g N/A N/A N/A N/A cls class_ ClassWithFinal N/A classmethod test_subclass_no_override N/A N/A self N/A N/A N/A 
        Tests that it is valid to create a subclass that does not override
        any methods.
         SubClass N/A N/A self class_ N/A N/A N/A N/A test_subclass_no_final_override N/A N/A self N/A N/A N/A 
        Tests that it is valid to create a subclass that does not override
        and final methods.
         SubClass N/A N/A self class_ N/A N/A b SubClass: b g N/A N/A self N/A N/A N/A SubClass: g N/A N/A N/A test_override_final_no_decorator N/A N/A self N/A N/A N/A 
        Tests that attempting to create a subclass that overrides a final
        method will raise a `TypeError`.
         N/A N/A N/A self assertRaises TypeError N/A SubClass N/A N/A self class_ N/A f N/A N/A self N/A N/A N/A SubClass: f N/A N/A N/A test_override_final_attribute N/A N/A self N/A N/A N/A 
        Tests that attempting to create a subclass that overrides a final
        attribute will raise a `TypeError`.
         N/A N/A N/A self assertRaises TypeError N/A SubClass N/A N/A self class_ N/A N/A a SubClass: a N/A N/A test_override_final_with_decorator N/A N/A self N/A N/A N/A 
        Tests that attempting to create a subclass that overrides a final
        method will raise a `TypeError` even if you mark the new version as
        final.
         N/A N/A N/A self assertRaises TypeError N/A SubClass N/A N/A self class_ N/A f N/A N/A self N/A N/A N/A SubClass: f N/A final N/A N/A test_override_final_attribute_with_final N/A N/A self N/A N/A N/A 
        Tests that attempting to create a subclass that overrides a final
        attribute will raise a `TypeError` even if you mark the new version as
        final.
         N/A N/A N/A self assertRaises TypeError N/A SubClass N/A N/A self class_ N/A N/A a N/A final SubClass: a N/A N/A test_override_on_class_object N/A N/A self N/A N/A N/A 
        Tests overriding final methods and attributes on the class object
        itself.
         SubClass N/A N/A self class_ N/A N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A SubClass f N/A N/A N/A self N/A SubClass: f N/A N/A N/A self assertRaises TypeError N/A N/A N/A SubClass a SubClass: a N/A test_override_on_instance N/A N/A self N/A N/A N/A 
        Tests overriding final methods on instances of a class.
         SubClass N/A N/A self class_ N/A h N/A N/A self N/A N/A N/A N/A N/A N/A s N/A SubClass N/A N/A N/A self assertRaises TypeError N/A N/A N/A s f N/A N/A N/A self N/A SubClass: f N/A N/A N/A self assertRaises TypeError N/A N/A N/A s a N/A N/A N/A self N/A SubClass: a N/A test_override_on_super N/A N/A self N/A N/A N/A 
        Tests overriding on the class that has the @final methods in it.
         N/A old_a N/A N/A self class_ a N/A old_f N/A N/A self class_ f N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A self class_ f N/A N/A N/A N/A args None N/A N/A N/A Exception N/A N/A N/A N/A self class_ f old_f N/A N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A self class_ a SubClass: a N/A N/A N/A Exception N/A N/A N/A N/A self class_ a old_a N/A N/A test_override___setattr___on_subclass N/A N/A self N/A N/A N/A 
        Tests an attempt to override __setattr__ which is implicitly final.
         N/A N/A N/A self assertRaises TypeError N/A SubClass N/A N/A self class_ N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A N/A object __setattr__ self name value N/A N/A N/A test_override___setattr___on_instance N/A N/A self N/A N/A N/A 
        Tests overriding __setattr__ on an instance.
         SubClass N/A N/A self class_ N/A N/A N/A N/A s N/A SubClass N/A N/A N/A self assertRaises TypeError N/A N/A N/A s __setattr__ N/A N/A N/A a b N/A None N/A N/A FinalABCMetaTestCase N/A FinalMetaTestCase N/A setUpClass N/A N/A cls N/A N/A N/A FinalABCMeta N/A compose_types FinalMeta ABCMeta ABCWithFinal N/A N/A with_metaclass FinalABCMeta object N/A N/A a N/A final ABCWithFinal: a N/A b ABCWithFinal: b f N/A N/A self N/A N/A N/A ABCWithFinal: f N/A final g N/A N/A self N/A N/A N/A ABCWithFinal: g N/A h N/A N/A self N/A N/A N/A N/A NotImplementedError h N/A abstractmethod N/A N/A N/A cls class_ ABCWithFinal N/A classmethod test_cannot_instantiate_subclass N/A N/A self N/A N/A N/A 
        Tests that you cannot create an instance of a subclass
        that does not implement the abstractmethod h.
         AbstractSubClass N/A N/A self class_ N/A N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A AbstractSubClass N/A test_override_on_instance N/A N/A self N/A N/A SubClass N/A N/A self class_ N/A h N/A N/A self N/A N/A N/A 
                Pass the abstract tests by creating this method.
                 N/A N/A N/A N/A s N/A SubClass N/A N/A N/A self assertRaises TypeError N/A N/A N/A s f N/A N/A N/A self N/A SubClass: f N/A test_override___setattr___on_instance N/A N/A self N/A N/A N/A 
        Tests overriding __setattr__ on an instance.
         SubClass N/A N/A self class_ N/A h N/A N/A self N/A N/A N/A N/A N/A N/A s N/A SubClass N/A N/A N/A self assertRaises TypeError N/A N/A N/A s __setattr__ N/A N/A N/A a b N/A None N/A test_subclass_setattr N/A N/A self N/A N/A N/A 
        Tests that subclasses don't destroy the __setattr__.
         ClassWithFinal N/A N/A with_metaclass FinalMeta object N/A f N/A N/A self N/A N/A N/A ClassWithFinal: f N/A final N/A SubClass N/A ClassWithFinal N/A __init__ N/A N/A self N/A N/A N/A N/A self a a N/A N/A N/A N/A SubClass N/A N/A N/A self assertEqual N/A N/A SubClass a a N/A N/A N/A self assertEqual N/A N/A N/A SubClass f ClassWithFinal: f N/A test_final_classmethod N/A N/A self N/A N/A ClassWithClassMethod N/A N/A with_metaclass FinalMeta object N/A N/A count 0 f N/A N/A cls N/A N/A N/A N/A cls count 1 N/A N/A cls count N/A final classmethod N/A N/A N/A N/A self assertRaises TypeError N/A ClassOverridingClassMethod N/A ClassWithClassMethod N/A f N/A N/A cls N/A N/A N/A Oh Noes! N/A classmethod N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A ClassWithClassMethod f N/A N/A N/A cls N/A 0 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 1 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 2 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 3 N/A instance N/A ClassWithClassMethod N/A N/A N/A self assertRaises TypeError N/A N/A N/A instance f N/A N/A N/A cls N/A 0 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 4 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 5 N/A N/A N/A self assertEqual N/A N/A ClassWithClassMethod f 6 N/A N/A