jarun / buku

:bookmark: Personal mini-web in text
GNU General Public License v3.0
6.52k stars 294 forks source link

fix pylint warnings by fixing a test #733

Closed LeXofLeviafan closed 6 months ago

LeXofLeviafan commented 6 months ago

I couldn't manage to reproduce the warnings locally… I wonder what's causing the difference :thinking: Turns out pylint misses some checks when it doesn't have access to sources of imported modules. (…Also it only works with Python 3.12 for some reason.)

LeXofLeviafan commented 6 months ago

…Seems like the issue is actually due to pylint bugging out and failing to locate the type during CI testing :thinking:

Turns out that's not quite the case; though it's odd that it actually requires a very specific set of conditions to be reproduced.

LeXofLeviafan commented 6 months ago

…More specifically, these conditions are required for this error to happen:

(The kicker is, the cause of the warning is not within either of the files it's printed out for :sweat_smile:)

jarun commented 6 months ago

Thank you!