discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

fix: only import bot when type checking modmail.utils.cogs #109

Closed onerandomusername closed 3 years ago

onerandomusername commented 3 years ago

was causing a recursive error on tests when this was imported

Relevant Issues

Description

codecov[bot] commented 3 years ago

Codecov Report

Merging #109 (5cc28a0) into main (85c1f42) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #109   +/-   ##
=======================================
  Coverage   70.62%   70.62%           
=======================================
  Files          32       32           
  Lines        1593     1593           
  Branches      190      190           
=======================================
  Hits         1125     1125           
  Misses        437      437           
  Partials       31       31           
Impacted Files Coverage Δ
modmail/utils/cogs.py 88.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 85c1f42...5cc28a0. Read the comment docs.