Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit476f4de

Browse files
committed
Add set_dirty_and_flush_changes() types to config.py
1 parentd6e7369 commit476f4de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/config.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def needs_values(func: Callable[..., _T]) -> Callable[..., _T]:
102102
"""Returns method assuring we read values (on demand) before we try to access them"""
103103

104104
@wraps(func)
105-
defassure_data_present(self:GitConfigParser,*args:Any,**kwargs:Any)->_T:
105+
defassure_data_present(self:'GitConfigParser',*args:Any,**kwargs:Any)->_T:
106106
self.read()
107107
returnfunc(self,*args,**kwargs)
108108
# END wrapper method
@@ -114,7 +114,7 @@ def set_dirty_and_flush_changes(non_const_func: Callable[..., _T]) -> Callable[.
114114
If so, the instance will be set dirty.
115115
Additionally, we flush the changes right to disk"""
116116

117-
defflush_changes(self:GitConfigParser,*args:Any,**kwargs:Any)->_T:
117+
defflush_changes(self:'GitConfigParser',*args:Any,**kwargs:Any)->_T:
118118
rval=non_const_func(self,*args,**kwargs)
119119
self._dirty=True
120120
self.write()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp