comparison mercurial/ui.py @ 50253:444fa55f5dd2

style: rewrap `ui.deprecwarn` declaration This get easier to read, especially with the type annotation.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Mar 2023 11:54:21 +0100
parents b7f33ed1d909
children 7f0f3b274d1e
comparison
equal deleted inserted replaced
50252:a6b8b1ab9116 50253:444fa55f5dd2
2220 # avoid cycles 2220 # avoid cycles
2221 del curframe 2221 del curframe
2222 del calframe 2222 del calframe
2223 2223
2224 def deprecwarn( 2224 def deprecwarn(
2225 self, msg: bytes, version: bytes, stacklevel: int = 2 2225 self,
2226 msg: bytes,
2227 version: bytes,
2228 stacklevel: int = 2,
2226 ) -> None: 2229 ) -> None:
2227 """issue a deprecation warning 2230 """issue a deprecation warning
2228 2231
2229 - msg: message explaining what is deprecated and how to upgrade, 2232 - msg: message explaining what is deprecated and how to upgrade,
2230 - version: last version where the API will be supported, 2233 - version: last version where the API will be supported,