pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

Surelt there's a bot

Читать полностью…

Offtopic

Unless you pay for their API, and make a tg bot for that

Читать полностью…

Offtopic

Instead of having to use the webshge

Читать полностью…

Offtopic

What are you talking about?

Читать полностью…

Offtopic

# comment1
## comment2
## comment3
### comment4

Читать полностью…

Offtopic

the code is the comment

Читать полностью…

Offtopic

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

Читать полностью…

Offtopic

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?

Читать полностью…

Offtopic

I think he is advertising

Читать полностью…

Offtopic

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..

Читать полностью…

Offtopic

why u remove the (), any impact on the code beheaviour?

i sometimes find also black formatter automatically remove these (()!

Читать полностью…

Offtopic

class Delivery:
@staticmethod
def exit():
pass

Читать полностью…

Offtopic

ohhhh I got it , thanks

Читать полностью…

Offtopic

I know what is methods
I mean how to static it

Читать полностью…

Offtopic

Do all parts of duck taste like breast?

Читать полностью…

Offtopic

Sirry I'm fbery fucked

Читать полностью…

Offtopic

That's an abuse use of their Web UI, violating the ToS

Читать полностью…

Offtopic

talk to chatgpt for free?

Читать полностью…

Offtopic

Iss there any bots that U can tslk to chat gpt for crre

Читать полностью…

Offtopic

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)

Читать полностью…

Offtopic

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.?

Читать полностью…

Offtopic

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.

Читать полностью…

Offtopic

Yeah, he was literally asking to be banned

Читать полностью…

Offtopic

All country routes is available

Читать полностью…

Offtopic

Because you don't need it

Читать полностью…

Offtopic

Nah, Chen Rui is in mid-40s

Читать полностью…

Offtopic

class Delivery():
@staticmethod
def exit():
pass

wowww

Читать полностью…

Offtopic

@staticmethod

Читать полностью…

Offtopic

Hhhh yeah he was a professor

Читать полностью…

Offtopic

no I am Chinese, turkey is not that common here

Читать полностью…
Subscribe to a channel