3
0
Просмотр исходного кода

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 месяцев назад
Родитель
Сommit
8805817730
1 измененных файлов с 1 добавлено и 0 удалено
  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()