largefiles: reference `mercurial.configitems.dynamicdefault` directly
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 05 Jan 2023 17:09:41 -0500
changeset 49852 564d360fc98e
parent 49851 a47e86e8fd51
child 49853 e63ab79b2fa1
largefiles: reference `mercurial.configitems.dynamicdefault` directly Pytype was unable to see `dynamicdefault` on `eh.configitem`. This is clearer anyway.
hgext/largefiles/__init__.py
--- a/hgext/largefiles/__init__.py	Thu Jan 05 17:04:16 2023 -0500
+++ b/hgext/largefiles/__init__.py	Thu Jan 05 17:09:41 2023 -0500
@@ -107,6 +107,7 @@
 
 from mercurial import (
     cmdutil,
+    configitems,
     extensions,
     exthelper,
     hg,
@@ -135,7 +136,7 @@
 eh.configitem(
     b'largefiles',
     b'minsize',
-    default=eh.configitem.dynamicdefault,
+    default=configitems.dynamicdefault,
 )
 eh.configitem(
     b'largefiles',