gootsaud / bike-riding

Re-definition found for builtin function PYL-W0622
Anti-pattern
Major
a year agoa year old
Redefining built-in 'pow'
 2print("Loading Librairies ...")
 3import pandas as pd
 4import numpy as np
 5from math import * 6
 7from sklearn.ensemble import BaggingRegressor
 8from flask import Flask , render_template, request
Redefining built-in 'max'
406
407
408def generate_lorem_ipsum(
409    n: int = 5, html: bool = True, min: int = 20, max: int = 100410) -> str:
411    """Generate some lorem ipsum for the template."""
412    from .constants import LOREM_IPSUM_WORDS
Redefining built-in 'min'
406
407
408def generate_lorem_ipsum(
409    n: int = 5, html: bool = True, min: int = 20, max: int = 100410) -> str:
411    """Generate some lorem ipsum for the template."""
412    from .constants import LOREM_IPSUM_WORDS
Redefining built-in 'callable'
 80)
 81
 82
 83def inspect_format_method(callable: t.Callable) -> t.Optional[str]: 84    if not isinstance(
 85        callable, (types.MethodType, types.BuiltinMethodType)
 86    ) or callable.__name__ not in ("format", "format_map"):
Redefining built-in 'vars'
 105    environment: "Environment",
 106    template_name: t.Optional[str],
 107    blocks: t.Dict[str, t.Callable[["Context"], t.Iterator[str]]],
 108    vars: t.Optional[t.Dict[str, t.Any]] = None, 109    shared: bool = False,
 110    globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
 111    locals: t.Optional[t.Mapping[str, t.Any]] = None,