ipython / ipython/traitlets

How to set globally a tag?

Offen
#682 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
653
Forks
217
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
2

Beschreibung

Hi,

I've got a simple question.

I'm developping a package with a lots of classes whose attributes are traitlets. All of them use the tag `sync` like this `x = Unicode().tag(sync=True)`.

Is there a way to set the `sync`tag to True by default for the whole package? This would prevent me from making an error and the code would be much more readable.

Thanks for your help

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.