12466
Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)
Unless you pay for their API, and make a tg bot for that
Читать полностью…
As VS Code starting giving a lot of ai updates, i am thiking to start with ZED Editor, so i as a example i first see this 1st image is in vs code when i have import anythign but not use this it say a error that the import not used, and i can use '# ignore' and this red line got removed warning form my file and warning message (2nd image).
But then i switched to zed with the same code there i found little more wired beheaviour like, the import statments got automatically rearranging 😳 but it is ok.
The problem i seeing is that , the same code zed saying this is unused so i need to remove or ignore this, so as i foudn zed say to use this, and i found even i add this thing here in vs code somethign #pyright ignore, still in bottom you say the warning is saying this is unused.
Actually as per sqlmodel docs they say i must need to import this module to work, so i need to import but not use.
But zed not say any way solve this problem.
anyone can help me how i can use solve like using pylance in zed or anything
whoever use the vs_code's terminal did you notice when we reach to the end of the lines in vs code terminal writing the underscores (_) not showing in the screen.i am pressing the same __ in the last lines, but it still shows nothign we can understand, what is the only i see, or do anyone of you guys did face this same issue when typing the _ in the vs code last line in terminal, or anyone know can we fix this anyhow here?
Читать полностью…
that reminds me Ruff would remove the additional parentheses around except A, B once you have requires-python>=3.14
Though in the latest VSCode ruff it says the requires-python in pyproject.toml an invalid assignment..
why u remove the (), any impact on the code beheaviour?
i sometimes find also black formatter automatically remove these (()!
That's an abuse use of their Web UI, violating the ToS
Читать полностью…
Iss there any bots that U can tslk to chat gpt for crre
Читать полностью…
You dont need to have models imported to database.py
As long as you define models with table=True it will autodetect your models
Just a heads up, this SQLModel.metadata.create_all() should be in a function and called only once (to create the tables)
actually i have used vs code for over some years i found the formatting like things are little differne in zed, if you guys who used vs code and zed with python can give me some idea will using zed be ok or it can cause little more learning curve and python auto arrange will cause problem here, as in vs code also i used black formatter with extension easily. zed i am thinking should i try to learn using this then vs code, or anyone who used this can have some feedback what will be more batter in term of python between vs code and zed.?
Читать полностью…
The Visual Studio Code terminal frequently displays this type of issue. When a JSON object is copied and pasted into a JSON syntax validation tool, it is reported as having invalid syntax. However, performing the same operation via the Command Prompt results in successful validation.
Читать полностью…
class Delivery():
@staticmethod
def exit():
pass