meta-pytorch / meta-pytorch/data

Move to removesuffix string method after python 3.8 support is dropped

Open
#1,240 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.3k
Forks
179
Avg merge
6d 1h
Merged PRs (30d)
2

Description

🚀 The feature

title

Motivation, pitch

rstrip/lstrip can lead to unintended behaviors

Alternatives

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository for rstrip and lstrip usage, then inspect the Python-version support configuration to confirm when Python 3.8 support is dropped. Replace the affected suffix or prefix handling with the requested string method and run the relevant test suite; done means the unintended stripping behavior is avoided without breaking supported versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.