available_capability returns str - fix type hint for this

This commit is contained in:
jesopo 2019-06-01 15:02:38 +01:00
parent 5ab64b1fdf
commit c3454f2bfe

View file

@ -288,7 +288,7 @@ class Server(IRCObject.Object):
return bool(self.available_capability(capability))
def has_capability_str(self, capability: str) -> bool:
return capability in self.agreed_capabilities
def available_capability(self, capability: utils.irc.Capability) -> bool:
def available_capability(self, capability: utils.irc.Capability) -> str:
return capability.available(self.agreed_capabilities)
def waiting_for_capabilities(self) -> bool: