uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Variable assigned to itself PYL-W0127
Anti-pattern
Minor
a year agoa year old
Assigning the same variable 'tc' to itself
585                )
586                subsection = str(subsection // 1)
587                for tc in random_date(sub.start_date, sub.end_date, 1):
588                    tc = tc589                Event.objects.create(
590                    organization=organization,
591                    customer=customer,
Assigning the same variable 'tc' to itself
482                )
483                subsection = str(subsection // 1)
484                for tc in random_date(sub.start_date, sub.end_date, 1):
485                    tc = tc486                Event.objects.create(
487                    organization=organization,
488                    customer=customer,
Assigning the same variable 'tc' to itself
372                )
373                subsection = str(subsection // 1)
374                for tc in random_date(sub.start_date, sub.end_date, 1):
375                    tc = tc376                Event.objects.create(
377                    organization=organization,
378                    customer=customer,
Assigning the same variable 'KAFKA_HOST' to itself
287KAFKA_HOST = config("KAFKA_URL", default="redpanda:29092")
288if KAFKA_HOST:
289    if "," not in KAFKA_HOST:
290        KAFKA_HOST = KAFKA_HOST291    else:
292        KAFKA_HOST = [
293            "{}:{}".format(parsedUrl.hostname, parsedUrl.port)