Преглед изворни кода

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 месеци
родитељ
комит
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()