question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow for varying import styles

See original GitHub issue

Works

from setuptools import setup


setup(
    ...
)

Does not work

import setuptools


setuptools.setup(
    ...
)

Results in:

No setup() call found in setup.py
can not perform sync

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nelsyeungcommented, Jun 6, 2022

@bryant-finney The first one works. The second one fails.

0reactions
jshwicommented, Jun 29, 2022

The answer to the second problem might be astroid, as per the pylint README

Pylint can infer actual values from your code using its internal code representation (astroid). If your code is import logging as argparse, Pylint will know that argparse.error(…) is in fact a logging call and not an argparse call.

Read more comments on GitHub >

github_iconTop Results From Across the Web

import - CSS: Cascading Style Sheets - MDN Web Docs
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top...
Read more >
Have You Tried: Import Styles | AutoCAD 2021
Select the styles for import, right-click, and click Add Text Style(s). Repeat for any other styles you want to import to the current...
Read more >
Sass: @import
Sass extends CSS's @import rule with the ability to import Sass and CSS stylesheets, providing access to mixins, functions, and variables and combining ......
Read more >
Dynamic import style and set scss variable value
I have an admin template in which I would like user to provide option to switch between different theme color such as dark/light...
Read more >
@use and @import rules in SCSS - Liquid Light
It provides tools like mixins, variables and functions (in SCSS these are called members) as well as allows you to nest your styles....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found