Przeglądaj źródła

Add missing @staticmethod decorator to Consts.default()

The method references no instance and takes no self — it was already
being called as Consts.default() throughout the codebase, but without
the decorator Python would pass the first positional argument as self
if it were ever called on an instance.
ZiB 4 miesięcy temu
rodzic
commit
8805817730
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      zz_remux/zz_remux/consts.py

+ 1 - 0
zz_remux/zz_remux/consts.py

@@ -33,5 +33,6 @@ class Consts:
   lang_codecs  = [ 'subtitle', 'audio' ]
   lang_missing = [ None, lang_undef ]
 
+  @staticmethod
   def default():
     return Consts._default.copy()