# Copyright (c) 2009-2019 The Regents of the University of Michigan
# This file is part of the HOOMD-blue project, released under the BSD 3-Clause
# License.

from hoomd import _hoomd


class Trigger(_hoomd.Trigger):
    pass


class PeriodicTrigger(_hoomd.PeriodicTrigger, Trigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)

# Copyright (c) 2009-2019 The Regents of the University of Michigan
# This file is part of the HOOMD-blue project, released under the BSD 3-Clause
# License.

from hoomd import _hoomd

class Trigger(_hoomd.Trigger):
    pass

class PeriodicTrigger(_hoomd.PeriodicTrigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)

--- 
+++ 
@@ -4,9 +4,11 @@
 
 from hoomd import _hoomd
 
+
 class Trigger(_hoomd.Trigger):
     pass
 
-class PeriodicTrigger(_hoomd.PeriodicTrigger):
+
+class PeriodicTrigger(_hoomd.PeriodicTrigger, Trigger):
     def __init__(self, period, phase=0):
         _hoomd.PeriodicTrigger.__init__(self, period, phase)
Make ``PeriodicTrigger`` inherent from ``Trigger``

Fixes bug in checking state and preprocessing ``Triggers`` for duck
typing.
