Mercurial > evolve
changeset 6618:b162b76a1ee9
topic: let pytype ignore wireprotov1peer.future attribute if it's not there
The safehasattr() check is already done previously, so we're good.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 26 Dec 2023 16:22:18 -0300 |
parents | 9107d91de94e |
children | 1ee748766685 |
files | hgext3rd/topic/server.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/server.py Sun Dec 17 12:44:22 2023 -0300 +++ b/hgext3rd/topic/server.py Tue Dec 26 16:22:18 2023 -0300 @@ -113,7 +113,7 @@ """ wirepeer that uses `future` class from before c424ff4807e6 """ @wireprotov1peer.batchable def tns_heads(self, namespaces): - f = wireprotov1peer.future() + f = wireprotov1peer.future() # pytype: disable=module-attr yield {b'namespaces': wireprototypes.encodelist(namespaces)}, f d = f.value try: