available_capability returns str
- fix type hint for this
This commit is contained in:
parent
5ab64b1fdf
commit
c3454f2bfe
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue