pySCG: Python type hints and what they are for
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- documentation, security
Rechercherichtung
Read the existing content in ossf/python-secure-coding-guide#13 first to avoid duplication, then draft guidance on Python type hints, implicit conversions, mypy, and the limits of static checking for deployed input. Decide whether the content should be a recommendation or a rule after drafting it. Done means the guidance covers those points without duplicating issue #13.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Create a Python specific rule or recommendation around:
- Type hints and what they are for.
Python 3.9does not even throw anINFOor warn when type hints don't match, it has to be clear that type hints are not a security or robustness feature. - Why type hints don't prevent implicit conversions
- Why hints must be used in combination with a tool like
mypy - Why or when
mypyis unable to protect against issues on a deployed system.
mypy != inputsanitation or validation.
Decide if its going to be a recommendation or rule after creating some content.
Avoid duplication with content in ossf/python-secure-coding-guide#13
- Vorherrschende Sprache
- Python
- Sterne
- 2
- Forks
- 2
- Ø Merge
- 11 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ossf/python-secure-coding-guide
-
pyscg-0051 should use a context managerEvtl. vergeben @s19110 hat das vor 8 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ossf/python-secure-coding-guide#1 · 4 Kommentare · 1 zugewiesene Person ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
ossf/python-secure-coding-guide#29 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
Alle Issues in ossf/python-secure-coding-guide
Ähnliche Issues
-
documentation type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
add entry to blockOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Evtl. vergeben @0z5a hat das heute übernommen. Offenneeds-triage
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
trace: Pi's 1-hour cache writes are priced at 1.25x, but billed at 2xEvtl. vergeben @Shizoqua hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
microsoft/TokenEconomizer#221 ·
Maintainer antworten meist innerhalb von 1 Tag
-
plot_graph crashes when a mesh node has no m2m edgeEvtl. vergeben @tygvi hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
mllam/neural-lam#883 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen