'from multithreading.decorators import measure_time - Why thet dont works?

import time

Pycharm for some reason highlights the .decorators, but I install all

from multithreading.decorators import measure_time # <-- Problem with thet line


def tick():
    print('tick')
    time.sleep(1)
    print('tock')


@measure_time
def main():
    for _ in range(3):
        tick()


if __name__ == '__main__':
    main()

image

why decorators and measure_time are underlined



Sources

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

Source: Stack Overflow

Solution Source