def get_editor ( self, trait = None ):
        """ Returns a trait editor that allows the user to modify the *trait*
        trait.

        Parameters
        ----------
        trait : Trait
            The trait to be edited.

        Description
        -----------
        This method only needs to be specified if traits defined using this
        trait handler require a non-default trait editor in trait user
        interfaces. The default implementation of this method returns a trait
        editor that allows the user to type an arbitrary string as the value.

        For more information on trait user interfaces, refer to the *Traits UI
        User Guide*.
        """
        if self.editor is not None:
            self.editor = self.create_editor()

        return self.editor
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/BaseTraitHandler.get_editor/operator `is` -> `is not`