'Unused import statement 'import config' Pycharm

class Bot:

    @staticmethod
    def token():
        telegramtoken = '...'
        return telegramtoken

    @staticmethod
    def executar():
        import config  # bot configs


Bot.executar()

why am i getting this error? if import config is working normally? is it possible to remove this warning?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source