Skip to content

Commit

Permalink
Fix mypy failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 18, 2020
1 parent 09beb37 commit 7266f2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions irc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
import warnings

try:
from importlib import metadata
from importlib import metadata # type: ignore
except ImportError:
import importlib_metadata as metadata
import importlib_metadata as metadata # type: ignore

import jaraco.functools
from jaraco.functools import Throttler
Expand Down
9 changes: 5 additions & 4 deletions irc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import select
import re
import socketserver
import typing

import jaraco.logging
from jaraco.stream import buffer
Expand Down Expand Up @@ -486,11 +487,11 @@ class IRCServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
daemon_threads = True
allow_reuse_address = True

channels = {}
"Existing channels (IRCChannel instances) by channel name"
channels: typing.Dict[str, IRCChannel] = {}
"Existing channels by channel name"

clients = {}
"Connected clients (IRCClient instances) by nick name"
clients: typing.Dict[str, IRCClient] = {}
"Connected clients by nick name"

def __init__(self, *args, **kwargs):
self.servername = 'localhost'
Expand Down

0 comments on commit 7266f2e

Please sign in to comment.