import requests

# ruleid:use-raise-for-status
requests.put("")

requests.put
requests.put("").raise_for_status("")

def f():
    # ruleid:use-raise-for-status
    return requests.get("")

def f():
    # ruleid:use-raise-for-status
    return requests.post("")

def f():
    # ruleid:use-raise-for-status
    return requests.put("")

def f():
    # ruleid:use-raise-for-status
    return requests.patch("")

def f():
    # ruleid:use-raise-for-status
    return requests.delete("")

def f():
    # ruleid:use-raise-for-status
    requests.put("")

def f():
    # ruleid:use-raise-for-status
    r = requests.get("")
    return r

def f():
    # ruleid:use-raise-for-status
    r = requests.get("")
    r.raise_for_status
    return r

def f():
    # ok
    r = requests.get("")
    r.raise_for_status()
    # ruleid:use-raise-for-status
    r = requests.get("")
    r.raise_for_status
    return r

def f():
    # ruleid:use-raise-for-status
    r = requests.get("")
    r.raise_for_status
    # ok
    r = requests.get("")
    r.raise_for_status()
    return r

def f():
    # ok
    r = requests.get("")
    r.raise_for_status()
    return r

def f():
    # ok
    requests.put("").raise_for_status()
